.


:




:

































 

 

 

 


. (Control) , (child)




(Control) , (child) , . , (Button), (Static), (Edit) . , . , , , .

(, ). (, ). , .

( ). , . - .

, WM_COMMAND, wParam .

, , .

 

hButton = CreateWindow(

"BUTTON", //

"Btn_Action", //

WS_CHILD | WS_VISIBLE | BS_DEFPUSHBUTTON, //

x, y, width, height, //

hMainWnd, //

(HMENU)id_Btn_Action, //ID

hMainInst, //

NULL

);

WM_COMMAND :

switch (uMsg) {

case WM_COMMAND:

switch(LOWORD(wParam)) {

case id_Btn_Action:

// Btn_Action

break;

}

break;

}

, . , Visual Studio.

, ( , ) , . , . .

, :

SendMessage(hButton, BM_SETSTATE, (WPARAM)TRUE, 0);

, , :

PostMessage(hButton, BM_CLICK, 0, 0);

.

1. : Edit, Button, ListBox, ComboBox ..

2. , Edit, .

3. ( Button).

4. ListBox, .

5. ComboBox, .

, ListBox, Edit Button (Add, Clear, ToRight Delete). Add Edit ListBox, ( ). Clear ListBox-. ToRight ListBox ( ). Delete ListBox-.

8
-

:

1) GDI.

2) GDI.





:


: 2016-11-12; !; : 415 |


:

:

,
==> ...

1040 - | 851 -


© 2015-2024 lektsii.org - -

: 0.012 .