flat assembler
Message board for the users of flat assembler.

Index > Windows > some questions about the example code "fasmcam.zip"

Author
Thread Post new topic Reply to topic
towry



Joined: 15 Aug 2012
Posts: 2
towry 15 Aug 2012, 15:18
Code:
 WM_CAP_SET_PREVIEWRATE       =  WM_USER + 52
  WM_CAP_SET_SCALE             =  WM_USER + 53
  ID_START                     =  201
  ID_STOP                      =  202
  ID_CLICK                     =  203
  _camtitle                    db 'FASMWEBCAM'
;........
;somthing
;........
 cmp     [wparam], BN_CLICKED shl 16 + ID_START  ; I don't understand what's this mean !!!!
      je      .startbutton 
    

I have searched this question on google, but got nothing.
is BN_CLICKED a constant? what's the value?
btw,my english is not good.. Embarassed
Post 15 Aug 2012, 15:18
View user's profile Send private message Reply with quote
bzdashek



Joined: 15 Feb 2012
Posts: 147
Location: Tolstokvashino, Russia
bzdashek 15 Aug 2012, 15:30
It's macro-constant,
see file:
FASM\INCLUDE\EQUATES\USER32.INC

Code:
BN_CLICKED    = 0
    
Post 15 Aug 2012, 15:30
View user's profile Send private message Reply with quote
towry



Joined: 15 Aug 2012
Posts: 2
towry 15 Aug 2012, 16:28
I have understood.


wParam: The LOWORD contains the button's control identifier. The HIWORD specifies the notification code.

so,BN_CLICKED shl 16 is notification code.
ID_START is the button's control identifier.
Thanks very much!
Post 15 Aug 2012, 16:28
View user's profile Send private message Reply with quote
bzdashek



Joined: 15 Feb 2012
Posts: 147
Location: Tolstokvashino, Russia
bzdashek 17 Aug 2012, 21:30
You're welcome!
Post 17 Aug 2012, 21:30
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.