flat assembler
Message board for the users of flat assembler.
Index
> Windows > Dialog Box Question |
Author |
|
Yardman 12 Aug 2008, 04:01
[ Post removed by author. ]
Last edited by Yardman on 04 Apr 2012, 03:24; edited 1 time in total |
|||
12 Aug 2008, 04:01 |
|
Zero 12 Aug 2008, 04:14
hmmm....I assembled your code and I can now see the dialog box window, however the menu is still missing. Any ideas?
Also, do I have to return true when using both CreateDialogParam and DialogBoxParam? thanks for your prompt help yardman |
|||
12 Aug 2008, 04:14 |
|
Yardman 12 Aug 2008, 04:54
[ Post removed by author. ]
Last edited by Yardman on 04 Apr 2012, 03:24; edited 1 time in total |
|||
12 Aug 2008, 04:54 |
|
Yardman 12 Aug 2008, 05:13
[ Post removed by author. ]
Last edited by Yardman on 04 Apr 2012, 03:24; edited 1 time in total |
|||
12 Aug 2008, 05:13 |
|
bitRAKE 13 Aug 2008, 02:40
Also want to make hDlg the parent of the message box - otherwise it displays under the dialog.
Code: invoke MessageBox,[hDlg],expBuffer,expDlgName,MB_OK
_________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||||||||||
13 Aug 2008, 02:40 |
|
Zero 13 Aug 2008, 07:34
thanks bitrake and yardman. I was wondering why the message box was displaying below the main window and [hDlg] solved it!
Also, you modified it and included: Code: invoke GetMenu,[hDlg] invoke DestroyMenu,eax Is it necessary to use DestroyMenu everytime LoadMenu is used, i.e. are they always used as pairs? Because I assembled it without those two lines of code, and it works ok. |
|||
13 Aug 2008, 07:34 |
|
bitRAKE 14 Aug 2008, 01:29
_________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
14 Aug 2008, 01:29 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.