|
|
style = WS_CHILD | WS_VISIBLE |
BS_PUSHBUTTON;
hButton = CreateWindow( "button"
,NULL
,style
,40
,rt.bottom-20+2
,40
,18
,hWnd
,(HMENU)2
,hInst
,NULL);
if ( !hButton ) {
DestroyWindow( hMedit );
DestroyWindow( hWnd );
return FALSE;
}
SetWindowText( hButton, "Edit" );
| |
|
|
|
|
case WM_SIZE:
MoveWindow( hMedit, 0, 0, LOWORD(lParam), HIWORD(lParam)-20, TRUE);
MoveWindow( hButton, 40, HIWORD(lParam)-20+2, 40, 18, TRUE);
break;
| |
|
|
|