flat assembler
Message board for the users of flat assembler.

Index > Windows > Trubles with dialogbox

Author
Thread Post new topic Reply to topic
marlboro



Joined: 26 Jun 2005
Posts: 1
marlboro
I use dialogbox with many buttons on it as a main window. Also i need to process accelerators, which refer to this buttons, but I don't know how to implement this.
Post 26 Jun 2005, 13:03
View user's profile Send private message Reply with quote
Vasilev Vjacheslav



Joined: 11 Aug 2004
Posts: 392
Vasilev Vjacheslav
i know only one way to process accelerators, but it isn't for dialogboxes

masm code

Code:
                invoke  LoadAccelerators, hInst, IDA_ACCEL
                mov     hAccel,eax
                .IF (eax)
                        .WHILE TRUE
                                invoke  GetMessage, ADDR msg, NULL, 0, 0
                                .BREAK .IF (!eax)
                                invoke  TranslateAccelerator, msg.hwnd, hAccel, ADDR msg
                                .CONTINUE .IF (eax)
                                invoke  TranslateMessage, ADDR msg
                                invoke  DispatchMessage, ADDR msg
                        .ENDW
                        mov     eax, msg.wParam
                .ENDIF

    
Post 26 Jun 2005, 13:23
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.