flat assembler
Message board for the users of flat assembler.
Index
> Windows > Dialog Box as a Main Window not working |
Author |
|
typedef 30 May 2012, 21:51
You are not returning false or true. My suggestion is that you follow the model in the FASM package and read a little bit on MSDN.
Your styles might also be messed up. Use defined styles i.e(WS_OVERLAPPEDWINDOW) not numeric ones unless you memorized them all. |
|||
30 May 2012, 21:51 |
|
Inagawa 30 May 2012, 22:04
Ha, return of 0 did the trick, I can't believe it!
I'll take the advice to heart, I was just trying to save some space. Thanks a lot |
|||
30 May 2012, 22:04 |
|
typedef 30 May 2012, 22:16
Glad you got it working.
|
|||
30 May 2012, 22:16 |
|
AsmGuru62 31 May 2012, 15:46
@Inagawa: using my commenting style?.. nicely readable code!
|
|||
31 May 2012, 15:46 |
|
Inagawa 31 May 2012, 20:26
Yes, I loved the comments I saw in your code.
|
|||
31 May 2012, 20:26 |
|
Inagawa 01 Jun 2012, 18:10
I can't figure out how to check for the EN_UPDATE notification code.
I have my code something like this: Code: cmp [wMsg], WM_COMMAND je .Message_Command .Message_Command: ; ; IDI_EDITBOX is the ID of the EditBox for which I want the EN_UPDATE ; cmp [wParam], EN_UPDATE shl 8 or IDI_EDITBOX je .Command_EditBoxUpdate Am I doing it wrong? The "shl 8 or" business works for checking if a button was clicked, but this notification isn't firing at all. I wouldn't be asking if I didn't already try all I could think of. |
|||
01 Jun 2012, 18:10 |
|
AsmGuru62 01 Jun 2012, 19:17
"shl 16" should fix it.
button click works because BN_CLICKED is 0, so no matter where you SHL it - it is matching! |
|||
01 Jun 2012, 19:17 |
|
Inagawa 01 Jun 2012, 19:30
I'm glad you're laughing at my problems, this was only the beginning. By the way, I could swear I tried shifting by 16 before and it did nothing. It's like when you can't find something in your drawer and your mother finds it without any problem.
|
|||
01 Jun 2012, 19:30 |
|
typedef 01 Jun 2012, 20:06
Inagawa wrote: It's like when you can't find something in your drawer and your mother finds it without any problem. Like your underwear ? |
|||
01 Jun 2012, 20:06 |
|
Inagawa 01 Jun 2012, 20:12
Lol I didn't mean anything specific.
|
|||
01 Jun 2012, 20:12 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.