Здравствуйте, wraith1985, Вы писали:
W>В реализации, по моему, ничего особенного
по твоему =)
W>W>void Application::Initiate()
W>{
W> ...
W> m_styleW = WS_POPUP|WS_CAPTION|WS_SYSMENU|WS_MINIMIZEBOX|WS_VISIBLE;
W> m_styleFS = WS_POPUP|WS_VISIBLE;
W> ...
W>}
а зачем WS_POPUP?
W>void Application::AdjustWindow()
W>{
W> RECT *rc;
W> LONG style;
W> if (bWindowed)
W> {
W> rc = &m_rectW;
W> style = m_styleW;
W> }
W> else
W> {
W> rc = &m_rectFS;
W> style = styleFS;
W> }
W> SetWindowLong(hwnd, GWL_STYLE, style);
W> style = GetWindowLong(hwnd, GWL_EXSTYLE);
W> if (bWindowed)
W> {
W> SetWindowLong(hwnd, GWL_EXSTYLE, style & (~WS_EX_TOPMOST));
W> SetWindowPos(hwnd, HWND_NOTOPMOST, rc->left, rc->top, rc->right-rc->left, rc->bottom-rc->top, SWP_FRAMECHANGED);
W> }
W> else
W> {
W> SetWindowLong(hwnd, GWL_EXSTYLE, style | WS_EX_TOPMOST);
W> SetWindowPos(hwnd, HWND_TOPMOST, rc->left, rc->top, rc->right-rc->left, rc->bottom-rc->top, SWP_FRAMECHANGED);
W> }
W>}
W>
а зачем SetWindowPos(hwnd, HWND_TOPMOST когда есть ITaskbarList2::MarkFullscreenWindow?