Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>To understand how Win32 application works requires additional effort compared to usual console application. </p> <p>"I had this crazy image, that win32 programming is based on calling windows functions and sending parameters to and from them"</p> <p>my hints ...</p> <p>1 )True , but also windows message that are the beats of a Windows Application , some example include WM_CREATE, WM_MOUSExx , WM_KEYxx , WM_PAINT where xx can be DOWN UP and so on . Messages are sent to your application by Windows itself , it is up to you to define a specific function to trap them (the "WindowFunc"). There are hundreds of messages, luckily is not necessary to understand all them at first .</p> <p>2) Every widget you can imagine to create in your app is a "Window" , and you can create Windows by CreateWindow function .Each window will be identified by a 32 bit integer value the so called Window Handle (HWND)</p> <p>3 There are so many different class of windows as you can imagine (mainwindow , clientarea , edit, button) both available from the system and also created by yourself... Windows are different as they belong from different WindowClass ... </p> <p>To define a WindowClass you have to fill a WNDCLASS c structure and call RegisterClass A field in the struct is a pointer to the WindowFunc </p> <p>4 The WindowFunc is a function that takes 4 input parameters (HWND,WM_XX,wParam,lParam) That function will be called from the system as soon as something happens regarding that window (HWND)</p> <p>said that let me rewrite your statement</p> <p>"Like, when you want to create window, you call some win32 function that handles windows GUI and say "Hi, please, create me new window, 100 x 100 px, with two buttons", and that GUI function says "Hi, no problem, when something happends, like user clicks one button, ...I will send you a message to the windowFunc as the user click... please check for the messagetype by yourself and if it is the WM_MOUSEDOWN you was waiting for then change the value for xy </p> <p>What else ? i suggest to look at some simple sample in the sdk to get confident on how a win 32 app flow is </p> <p>cheers</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload