主题:请问WINDOWS API函数怎么创建一个BUTTON啊``谢谢``
baijievb
[专家分:100] 发布于 2005-05-19 18:58:00
如题```多谢``
回复列表 (共3个回复)
沙发
digital1010 [专家分:1430] 发布于 2005-05-22 04:53:00
放在消息语句块下面。。
WM_COMMAND
板凳
zlhhz [专家分:710] 发布于 2005-05-27 12:07:00
hwndButton = CreateWindow(
"BUTTON", // predefined class
"OK", // button text
WS_VISIBLE | WS_CHILD | BS_DEFPUSHBUTTON, // styles
// Size and position values are given explicitly, because
// the CW_USEDEFAULT constant gives zero values for buttons.
10, // starting x position
10, // starting y position
100, // button width
100, // button height
hwnd, // parent window
NULL, // No menu
(HINSTANCE) GetWindowLong(hwnd, GWL_HINSTANCE),
NULL); // pointer not needed
3 楼
メ冰枫ぱ雪 [专家分:530] 发布于 2005-05-31 15:01:00
汗~! 还真。。
我来回复