void GAlert::SetAppModal() { #if WINNATIVE SetExStyle(GetExStyle() | WS_EX_TOPMOST); #elif !defined(_MSC_VER) #warning "Impl me." #endif }
INT_PTR ToolBar::Create(HWND hParent){ if(!ICtrl::Create(hParent)) return 0; SendMessage(TB_BUTTONSTRUCTSIZE,sizeof(TBBUTTON),0); SetExStyle(TBSTYLE_EX_HIDECLIPPEDBUTTONS,1); /*if(IWnd* wp = GetWindowByHandle(hParent)){ wp->GetMsgHook(WM_SIZE)->Add(this,&ToolBar::_OnParentSize); }*/ return (INT_PTR)_Handle; }
GWindow::GWindow() : GView(0) { _Window = this; d = new GWindowPrivate; Menu = 0; _Dialog = NULL; SetStyle(GetStyle() | WS_TILEDWINDOW | WS_CLIPCHILDREN); SetStyle(GetStyle() & ~WS_CHILD); SetExStyle(GetExStyle() | WS_EX_CONTROLPARENT); GWin32Class *c = GWin32Class::Create(GetClass()); if (c) { c->Register(); } Visible(false); _Default = 0; _Lock = new GMutex("GWindow"); _QuitOnClose = false; }