In c++ Windows API resize window during runtime?
问题 How do you resize a global hwnd variable during runtime when a button is clicked? Or just any way to resize the window during runtime. i.e. HWND hwnd; //global int buttonid = 250; // an id for a button //also global int WINAPI wWinMain(/*blah blah blah */) { //blah blah blah hwnd = CreateWindowEx( 0, L"WindowClass", L"Window", WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, 300, 275, NULL, NULL, hInstance, NULL ); HWND mybutton = CreateWindow( L"BUTTON", L"Button", WS_VISIBLE | WS_CHILD |