Note: A thread cannot use this function to destroy windows created by other threads. If you want to get more error information, please call GetLastError function. Return value: If the function succeeds, the return value is non-zero: If the function fails, the return value is zero. HWnd: the handle of the window to be destroyed. This function also destroys the menu of the window, clears the message queue of the thread, destroys the timer related to the window procedure, releases the window's ownership of the clipboard, and interrupts the viewing chain of the clipboard.įunction prototype: BOOL DestroyWindow( HWND hWnd//handle to window to destroy) ![]() This function invalidates the window and removes its keyboard focus by sending WM_DESTROY and WM_NCDESTROY messages. ![]() The application must use the DestroyWindow function to destroy the window.įunction function: destroy the specified window. The system displays the icon of the window instead of the window, and displays the window title under the icon. Note: The window size is minimized to an icon and moved to the icon area of the screen. Return value: If the function succeeds, the return value is non-zero if the function fails, the return value is zero. ![]() HWnd: the handle of the window to be minimized. Note: CDialog::CloseWindow() just minimizes the dialogĭetailed explanation of related functions:įunction function: This function minimizes the specified window, but does not destroy the window.įunction prototype: BOOL CloseWindow(HWND hWnd) TODO: Add your control notification handler code hereġ.CDialog::OnOK() //OK button is pressed CDialog::OnCancel() //Cancel button is pressed
0 Comments
Leave a Reply. |