哪位大侠知道对话框总显示在屏幕前面的方法,
是不是用CWnd::SetForegroundWindow()
CWindow::SetWindowPos
BOOL SetWindowPos( HWND hWndInsertAfter, int x, int y, int cx, int cy, UINT nFlags );
BOOL SetWindowPos( HWND hWndInsertAfter, LPCRECT lpRect, UINT nFlags );
or API:
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 flags
);
SetWindowPos(m_hWnd,HWND_TOPMOST,…………
SetWindowPos(&wndMost,0,0,0,0,SWP_NOSIZE|SWP_NOMOVE);