bool Window_DollManageBase::SetFrame( WindowSkin* _pSkin, BYTE _colorType){ SetPresetFont(PRESETFONT_INFO); SetPresetColor(_colorType); Window_Text::Setup(_pSkin, WindowArea( WND_MANAGEALICEDOLL_X, WND_MANAGEALICEDOLL_Y, WND_MANAGEALICEDOLL_W, WND_MANAGEALICEDOLL_H), WindowArea( WND_MANAGEALICEDOLL_PADDING, WND_MANAGEALICEDOLL_PADDING, WND_MANAGEALICEDOLL_W-WND_MANAGEALICEDOLL_PADDING*2, WND_MANAGEALICEDOLL_H-WND_MANAGEALICEDOLL_PADDING*2), true); return true; }
void CMagneticView::SetPictureWindowState(void) { CMagneticApp* pApp = (CMagneticApp*)AfxGetApp(); if (pApp->GetShowGraphics() == CMagneticApp::ShowGraphics::SeparateWindow) { if ((m_PicWnd.GetSafeHwnd() == NULL) && (m_Picture.IsValid())) { CRect WindowArea(pApp->GetPicTopLeft(),CSize(0,0)); if (m_PicWnd.CreatePicWnd(this,WindowArea)) SetFocus(); } m_PicWnd.Update(); } else { if (m_PicWnd.GetSafeHwnd()) m_PicWnd.SendMessage(WM_CLOSE,0,0); } }
void CWsWindow::AreaCovered(TRegion &aRegion) { aRegion.Copy(WindowArea()); }