Có bác nào biết cách làm cho một cửa sổ luôn hiển thị lên trên các cửa sổ khác không.
Đã được chỉnh sửa lần cuối bởi hiepitbk : 30-11-2006 lúc 11:24 AM.
WS_EX_TOPMOST: Specifies that a window created with this style should be placed above all nontopmost windows and stay above them even when the window is deactivated. An application can use the SetWindowPos member function to add or remove this attribute.
Visual C++ Code:
BOOL SetWindowPos( HWND hWnd, // handle to window HWND hWndInsertAfter, // placement-order handle int X, // horizontal position int Y, // vertical position int cx, // width int cy, // height UINT uFlags // window-positioning options );
hWndInsertAfter đặt là HWND_TOPMOST là ôkê
Our dreams are young and we both know they take us where we want to go...