void ConsoleCanvas::ShowWithFreshFonts( void ) { Hide(); Move( 0, 0 ); UpdateFonts(); gFrame->PositionConsole(); Show(); }
void FontView::AttachedToWindow() { fPlainView->SetTarget(this); fBoldView->SetTarget(this); fFixedView->SetTarget(this); fMenuView->SetTarget(this); UpdateFonts(); fRunner = new BMessageRunner(this, new BMessage(kMsgCheckFonts), 3000000); // every 3 seconds }
int COutputWnd::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CDockablePane::OnCreate(lpCreateStruct) == -1) return -1; CRect rectDummy; rectDummy.SetRectEmpty(); // 탭 창을 만듭니다. if (!m_wndTabs.Create(CMFCTabCtrl::STYLE_FLAT, rectDummy, this, 1)) { TRACE0("출력 탭 창을 만들지 못했습니다.\n"); return -1; // 만들지 못했습니다. } // 출력 창을 만듭니다. const DWORD dwStyle = LBS_NOINTEGRALHEIGHT | WS_CHILD | WS_VISIBLE | WS_HSCROLL | WS_VSCROLL; if (!m_wndOutputBuild.Create(dwStyle, rectDummy, &m_wndTabs, 2) || !m_wndOutputDebug.Create(dwStyle, rectDummy, &m_wndTabs, 3) || !m_wndOutputFind.Create(dwStyle, rectDummy, &m_wndTabs, 4)) { TRACE0("출력 창을 만들지 못했습니다.\n"); return -1; // 만들지 못했습니다. } UpdateFonts(); CString strTabName; BOOL bNameValid; // 탭에 목록 창을 연결합니다. bNameValid = strTabName.LoadString(IDS_BUILD_TAB); ASSERT(bNameValid); m_wndTabs.AddTab(&m_wndOutputBuild, strTabName, (UINT)0); bNameValid = strTabName.LoadString(IDS_DEBUG_TAB); ASSERT(bNameValid); m_wndTabs.AddTab(&m_wndOutputDebug, strTabName, (UINT)1); bNameValid = strTabName.LoadString(IDS_FIND_TAB); ASSERT(bNameValid); m_wndTabs.AddTab(&m_wndOutputFind, strTabName, (UINT)2); // 출력 탭을 더미 텍스트로 채웁니다. FillBuildWindow(); FillDebugWindow(); FillFindWindow(); return 0; }
int COutputWnd::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CDockablePane::OnCreate(lpCreateStruct) == -1) return -1; CRect rectDummy; rectDummy.SetRectEmpty(); // 创建选项卡窗口: if (!m_wndTabs.Create(CMFCTabCtrl::STYLE_FLAT, rectDummy, this, 1)) { TRACE0("未能创建输出选项卡窗口\n"); return -1; // 未能创建 } // 创建输出窗格: const DWORD dwStyle = LBS_NOINTEGRALHEIGHT | WS_CHILD | WS_VISIBLE | WS_HSCROLL | WS_VSCROLL; if (!m_wndOutputBuild.Create(dwStyle, rectDummy, &m_wndTabs, 2) || !m_wndOutputDebug.Create(dwStyle, rectDummy, &m_wndTabs, 3) || !m_wndOutputFind.Create(dwStyle, rectDummy, &m_wndTabs, 4)) { TRACE0("未能创建输出窗口\n"); return -1; // 未能创建 } UpdateFonts(); CString strTabName; BOOL bNameValid; // 将列表窗口附加到选项卡: bNameValid = strTabName.LoadString(IDS_BUILD_TAB); ASSERT(bNameValid); m_wndTabs.AddTab(&m_wndOutputBuild, strTabName, (UINT)0); bNameValid = strTabName.LoadString(IDS_DEBUG_TAB); ASSERT(bNameValid); m_wndTabs.AddTab(&m_wndOutputDebug, strTabName, (UINT)1); bNameValid = strTabName.LoadString(IDS_FIND_TAB); ASSERT(bNameValid); m_wndTabs.AddTab(&m_wndOutputFind, strTabName, (UINT)2); // 使用一些虚拟文本填写输出选项卡(无需复杂数据) FillBuildWindow(); FillDebugWindow(); FillFindWindow(); return 0; }
int COutputWnd::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CDockablePane::OnCreate(lpCreateStruct) == -1) return -1; CRect rectDummy; rectDummy.SetRectEmpty(); // Create tabs window: if (!m_wndTabs.Create(CMFCTabCtrl::STYLE_FLAT, rectDummy, this, 1)) { TRACE0("Failed to create output tab window\n"); return -1; // fail to create } // Create output panes: const DWORD dwStyle = LBS_NOINTEGRALHEIGHT | WS_CHILD | WS_VISIBLE | WS_HSCROLL | WS_VSCROLL; if (!m_wndOutputBuild.Create(dwStyle, rectDummy, &m_wndTabs, 2) || !m_wndOutputDebug.Create(dwStyle, rectDummy, &m_wndTabs, 3) || !m_wndOutputFind.Create(dwStyle, rectDummy, &m_wndTabs, 4)) { TRACE0("Failed to create output windows\n"); return -1; // fail to create } UpdateFonts(); CString strTabName; BOOL bNameValid; // Attach list windows to tab: bNameValid = strTabName.LoadString(IDS_BUILD_TAB); ASSERT(bNameValid); m_wndTabs.AddTab(&m_wndOutputBuild, strTabName, (UINT)0); bNameValid = strTabName.LoadString(IDS_DEBUG_TAB); ASSERT(bNameValid); m_wndTabs.AddTab(&m_wndOutputDebug, strTabName, (UINT)1); bNameValid = strTabName.LoadString(IDS_FIND_TAB); ASSERT(bNameValid); m_wndTabs.AddTab(&m_wndOutputFind, strTabName, (UINT)2); // Fill output tabs with some dummy text (nothing magic here) FillBuildWindow(); FillDebugWindow(); FillFindWindow(); return 0; }
int COutputWnd::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CDockablePane::OnCreate(lpCreateStruct) == -1) return -1; CRect rectDummy; rectDummy.SetRectEmpty(); // タブ付きウィンドウの作成: if (!m_wndTabs.Create(CMFCTabCtrl::STYLE_FLAT, rectDummy, this, 1)) { TRACE0("タブ付き出力ウィンドウを作成できませんでした\n"); return -1; // 作成できない場合 } // 出力ペインの作成: const DWORD dwStyle = LBS_NOINTEGRALHEIGHT | WS_CHILD | WS_VISIBLE | WS_HSCROLL | WS_VSCROLL; if (!m_wndOutputBuild.Create(dwStyle, rectDummy, &m_wndTabs, 2) || !m_wndOutputDebug.Create(dwStyle, rectDummy, &m_wndTabs, 3) || !m_wndOutputFind.Create(dwStyle, rectDummy, &m_wndTabs, 4)) { TRACE0("出力ウィンドウを作成できませんでした\n"); return -1; // 作成できない場合 } UpdateFonts(); CString strTabName; BOOL bNameValid; // 一覧ウィンドウをタブに割り当てます: bNameValid = strTabName.LoadString(IDS_TIMELINE_TAB); ASSERT(bNameValid); m_wndTabs.AddTab(&m_wndOutputBuild, strTabName, (UINT)0); //bNameValid = strTabName.LoadString(IDS_DEBUG_TAB); //ASSERT(bNameValid); //m_wndTabs.AddTab(&m_wndOutputDebug, strTabName, (UINT)1); //bNameValid = strTabName.LoadString(IDS_FIND_TAB); //ASSERT(bNameValid); //m_wndTabs.AddTab(&m_wndOutputFind, strTabName, (UINT)2); // 出力タブにダミー テキストを入力します //FillBuildWindow(); //FillDebugWindow(); //FillFindWindow(); return 0; }
int COutputWnd::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CDockablePane::OnCreate(lpCreateStruct) == -1) return -1; CRect rectDummy; rectDummy.SetRectEmpty(); // Créer la fenêtre d'onglets : if (!m_wndTabs.Create(CMFCTabCtrl::STYLE_FLAT, rectDummy, this, 1)) { TRACE0("Impossible de créer la fenêtre d'onglets de sortie\n"); return -1; // échec de la création } // Créer les volets de sortie : const DWORD dwStyle = LBS_NOINTEGRALHEIGHT | WS_CHILD | WS_VISIBLE | WS_HSCROLL | WS_VSCROLL; if (!m_wndOutputBuild.Create(dwStyle, rectDummy, &m_wndTabs, 2) || !m_wndOutputDebug.Create(dwStyle, rectDummy, &m_wndTabs, 3) || !m_wndOutputFind.Create(dwStyle, rectDummy, &m_wndTabs, 4)) { TRACE0("Impossible de créer les fenêtres Sortie\n"); return -1; // échec de la création } UpdateFonts(); CString strTabName; BOOL bNameValid; // Attacher les fenêtres de listes à l'onglet : bNameValid = strTabName.LoadString(IDS_BUILD_TAB); ASSERT(bNameValid); m_wndTabs.AddTab(&m_wndOutputBuild, strTabName, (UINT)0); bNameValid = strTabName.LoadString(IDS_DEBUG_TAB); ASSERT(bNameValid); m_wndTabs.AddTab(&m_wndOutputDebug, strTabName, (UINT)1); bNameValid = strTabName.LoadString(IDS_FIND_TAB); ASSERT(bNameValid); m_wndTabs.AddTab(&m_wndOutputFind, strTabName, (UINT)2); // Remplir les onglets de sortie avec du texte factice (rien de magique ici) FillBuildWindow(); FillDebugWindow(); FillFindWindow(); return 0; }
int COutputWnd::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CDockablePane::OnCreate(lpCreateStruct) == -1) return -1; CRect rectDummy; rectDummy.SetRectEmpty(); // Crear ventana de fichas: if (!m_wndTabs.Create(CMFCTabCtrl::STYLE_FLAT, rectDummy, this, 1)) { TRACE0("No se pudo crear la ventana de fichas de resultados\n"); return -1; // no se pudo crear } // Crear paneles de resultados: const DWORD dwStyle = LBS_NOINTEGRALHEIGHT | WS_CHILD | WS_VISIBLE | WS_HSCROLL | WS_VSCROLL; if (!m_wndOutputLog.Create(dwStyle, rectDummy, &m_wndTabs, 2) || !m_wndOutputDebug.Create(dwStyle, rectDummy, &m_wndTabs, 3) || !m_wndOutputFind.Create(dwStyle, rectDummy, &m_wndTabs, 4)) { TRACE0("No se pudieron crear las ventanas de salida\n"); return -1; // no se pudo crear } UpdateFonts(); CString strTabName; BOOL bNameValid; // Adjuntar ventanas de lista a la ficha: bNameValid = strTabName.LoadString(IDS_BUILD_TAB); ASSERT(bNameValid); m_wndTabs.AddTab(&m_wndOutputLog, strTabName, (UINT)0); bNameValid = strTabName.LoadString(IDS_DEBUG_TAB); ASSERT(bNameValid); m_wndTabs.AddTab(&m_wndOutputDebug, strTabName, (UINT)1); bNameValid = strTabName.LoadString(IDS_FIND_TAB); ASSERT(bNameValid); m_wndTabs.AddTab(&m_wndOutputFind, strTabName, (UINT)2); // Rellenar fichas de resultados con texto ficticio (nada especial) //FillBuildWindow(); FillDebugWindow(); FillFindWindow(); return 0; }
int COutputWnd::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CDockablePane::OnCreate(lpCreateStruct) == -1) return -1; CRect rectDummy; rectDummy.SetRectEmpty(); // Create tabs window: if (!m_wndTabs.Create(CMFCTabCtrl::STYLE_FLAT, rectDummy, this, 1)) { TRACE0("Failed to create output tab window\n"); return -1; // fail to create } // Create output panes: const DWORD dwStyle = LBS_NOINTEGRALHEIGHT | WS_CHILD | WS_VISIBLE | WS_HSCROLL | WS_VSCROLL; if (!m_wndOutputOgre.Create(dwStyle, rectDummy, &m_wndTabs, 2)) { TRACE0("Failed to create output windows\n"); return -1; // fail to create } UpdateFonts(); CString strTabName; BOOL bNameValid; // Attach list windows to tab: bNameValid = strTabName.LoadString(IDS_BUILD_TAB); ASSERT(bNameValid); m_wndTabs.AddTab(&m_wndOutputOgre, strTabName, (UINT)0); //bNameValid = strTabName.LoadString(IDS_DEBUG_TAB); //ASSERT(bNameValid); //m_wndTabs.AddTab(&m_wndOutputDebug, strTabName, (UINT)1); m_wndOutputOgre.SetItemHeight(0, 17); m_wndOutputOgre.ModifyStyle(LBS_SORT, 0); return 0; }
// Initialization code void AFX_GLOBAL_DATA::Initialize() { if (m_bInitialized) { return; } OSVERSIONINFOEX osvi = { sizeof(osvi), HIBYTE(_WIN32_WINNT_WIN7), LOBYTE(_WIN32_WINNT_WIN7) }; // The condition mask specifies to test for the OS major/minor versions using greater than or equal. DWORDLONG const dwlConditionMask = VerSetConditionMask(VerSetConditionMask(0, VER_MAJORVERSION, VER_GREATER_EQUAL), VER_MINORVERSION, VER_GREATER_EQUAL); bIsWindows7 = VerifyVersionInfo(&osvi, VER_MAJORVERSION | VER_MINORVERSION, dwlConditionMask); bIsRemoteSession = GetSystemMetrics(SM_REMOTESESSION); UpdateSysColors(); UpdateFonts(); OnSettingChange(); EnableAccessibilitySupport(); }
int COutputViewBar::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CDockablePane::OnCreate(lpCreateStruct) == -1) return -1; CRect rectClient(0, 0, lpCreateStruct->cx, lpCreateStruct->cy); // Create output pane: const DWORD dwStyle = LBS_NOINTEGRALHEIGHT | WS_CHILD | WS_VISIBLE | WS_HSCROLL | WS_VSCROLL; if (!m_wndOutput.Create(dwStyle, rectClient, this, 1)) { TRACE0("Failed to create output window\n"); return -1; // fail to create } UpdateFonts(); // Fill view context(dummy code, don't seek here something magic :-)): FillDebugWindow(); return 0; }
void FontView::MessageReceived(BMessage* message) { switch (message->what) { case kMsgSetSize: case kMsgSetFamily: case kMsgSetStyle: { const char* name; if (message->FindString("name", &name) != B_OK) break; if (!strcmp(name, "plain")) fPlainView->MessageReceived(message); else if (!strcmp(name, "bold")) fBoldView->MessageReceived(message); else if (!strcmp(name, "fixed")) fFixedView->MessageReceived(message); else if (!strcmp(name, "menu")) fMenuView->MessageReceived(message); else break; Window()->PostMessage(kMsgUpdate); break; } case kMsgCheckFonts: if (update_font_families(true)) UpdateFonts(); break; default: BView::MessageReceived(message); } }
BOOL CIrcWnd::OnInitDialog() { CResizableDialog::OnInitDialog(); #ifdef _DEBUG CString strBuff; m_nicklist.GetWindowText(strBuff); ASSERT( strBuff == NICK_LV_PROFILE_NAME ); strBuff.Empty(); m_serverChannelList.GetWindowText(strBuff); ASSERT( strBuff == CHAN_LV_PROFILE_NAME ); #endif m_bConnected = false; m_bLoggedIn = false; Localize(); m_pIrcMain = new CIrcMain(); m_pIrcMain->SetIRCWnd(this); UpdateFonts(&theApp.m_fontHyperText); InitWindowStyles(this); ((CEdit*)GetDlgItem(IDC_INPUTWINDOW))->SetLimitText(MAX_IRC_MSG_LEN); //MORPH START -Added by SiRoB, Splitting Bar [O²] CRect rc,rcSpl; CWnd* pWnd = GetDlgItem(IDC_NICKLIST); pWnd->GetWindowRect(rcSpl); ScreenToClient(rcSpl); GetWindowRect(rc); ScreenToClient(rc); rcSpl.bottom=rc.bottom-10; rcSpl.left=rcSpl.right +3; rcSpl.right=rcSpl.left+4; m_wndSplitterIRC.Create(WS_CHILD | WS_VISIBLE, rcSpl, this, IDC_SPLITTER_IRC); //MORPH END - Added by SiRoB, Splitting Bar [O²] AddAnchor(IDC_BN_IRCCONNECT,BOTTOM_LEFT); AddAnchor(IDC_CLOSECHAT,BOTTOM_LEFT); AddAnchor(IDC_CHATSEND,BOTTOM_RIGHT); AddAnchor(IDC_INPUTWINDOW,BOTTOM_LEFT,BOTTOM_RIGHT); AddAnchor(IDC_NICKLIST,TOP_LEFT,BOTTOM_LEFT); AddAnchor(IDC_TITLEWINDOW,TOP_LEFT,TOP_RIGHT); AddAnchor(IDC_SERVERCHANNELLIST,TOP_LEFT,BOTTOM_RIGHT); AddAnchor(IDC_TAB2,TOP_LEFT, TOP_RIGHT); //MORPH START - Added by SiRoB, Splitting Bar [O²] AddAnchor(m_wndSplitterIRC,TOP_LEFT, BOTTOM_LEFT); int PosStatinit = rcSpl.left; int PosStatnew = thePrefs.GetSplitterbarPositionIRC(); int max = 700; int min = 200; if (thePrefs.GetSplitterbarPositionIRC() > 700) PosStatnew = 700; else if (thePrefs.GetSplitterbarPositionIRC() < 200) PosStatnew = 200; rcSpl.left = PosStatnew; rcSpl.right = PosStatnew+5; m_wndSplitterIRC.MoveWindow(rcSpl); DoResize(PosStatnew-PosStatinit); //MORPH END - Added by SiRoB, Splitting Bar [O²] m_serverChannelList.Init(); m_nicklist.Init(); m_channelselect.Init(); OnChatTextChange(); return true; }
void ConsoleCanvas::ShowWithFreshFonts(void) { UpdateFonts(); Show(); }
int COutputWnd::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CDockablePane::OnCreate(lpCreateStruct) == -1) return -1; CRect rectDummy; rectDummy.SetRectEmpty(); // 建立索引標籤視窗: if (!m_wndTabs.Create(CMFCTabCtrl::STYLE_FLAT, rectDummy, this, 1)) { TRACE0("無法建立輸出索引標籤視窗\n"); return -1; // 無法建立 } // 建立輸出窗格: const DWORD dwStyle = LBS_NOINTEGRALHEIGHT | WS_CHILD | WS_VISIBLE | WS_HSCROLL | WS_VSCROLL; if (!m_wndOutputBuild.Create(dwStyle, rectDummy, &m_wndTabs, 2) || !m_wndOutputDebug.Create(dwStyle, rectDummy, &m_wndTabs, 3) || !m_wndOutputFind.Create(dwStyle, rectDummy, &m_wndTabs, 4)) { TRACE0("無法建立輸出視窗\n"); return -1; // 無法建立 } UpdateFonts(); // 附加清單視窗到索引標籤: // phlin m_wndObjText.Create(WS_CHILD | WS_VISIBLE | WS_HSCROLL | WS_VSCROLL |ES_AUTOHSCROLL | ES_AUTOVSCROLL | ES_MULTILINE | ES_LEFT | ES_WANTRETURN ,// | ES_READONLY, rectDummy /*CRect(0,0,0,0)*/, &m_wndTabs, 5); m_wndTabs.AddTab(&m_wndObjText, _T(".obj"), (UINT)0); UpdateFonts(); m_wndObjText.SetWindowTextW(_T("obj viewer\ntest")); // font.CreatePointFont(120, _T("新細明體")); // font.CreatePointFont(120, _T("標楷體")); font.CreatePointFont(110, _T("Courier New")); m_wndObjText.SetFont(&font); // CString str = _T("init"); // str.AppendFormat(_T("%d\r\n%d"), 1, 2); CString str; str.LoadStringW(IDS_NO_MODEL); m_wndObjText.SetWindowTextW(str); CString strTabName; BOOL bNameValid; bNameValid = strTabName.LoadString(IDS_BUILD_TAB); ASSERT(bNameValid); m_wndTabs.AddTab(&m_wndOutputBuild, strTabName, (UINT)1); bNameValid = strTabName.LoadString(IDS_DEBUG_TAB); ASSERT(bNameValid); m_wndTabs.AddTab(&m_wndOutputDebug, strTabName, (UINT)2); bNameValid = strTabName.LoadString(IDS_FIND_TAB); ASSERT(bNameValid); m_wndTabs.AddTab(&m_wndOutputFind, strTabName, (UINT)3); // 在輸出索引標籤中填入一些假文字 (不需要什麼特別的內容) FillBuildWindow(); FillDebugWindow(); FillFindWindow(); return 0; }
BOOL CIrcWnd::OnInitDialog() { CResizableDialog::OnInitDialog(); m_bConnected = false; m_bLoggedIn = false; m_pIrcMain = new CIrcMain(); m_pIrcMain->SetIRCWnd(this); UpdateFonts(&theApp.m_fontHyperText); InitWindowStyles(this); SetAllIcons(); m_wndInput.SetLimitText(MAX_IRC_MSG_LEN); if (theApp.m_fontChatEdit.m_hObject) { m_wndInput.SendMessage(WM_SETFONT, (WPARAM)theApp.m_fontChatEdit.m_hObject, FALSE); CRect rcEdit; m_wndInput.GetWindowRect(&rcEdit); ScreenToClient(&rcEdit); rcEdit.top -= 2; rcEdit.bottom += 2; m_wndInput.MoveWindow(&rcEdit, FALSE); } CRect rcSpl; m_wndNicks.GetWindowRect(rcSpl); ScreenToClient(rcSpl); rcSpl.left = rcSpl.right + SPLITTER_HORZ_MARGIN; rcSpl.right = rcSpl.left + SPLITTER_HORZ_WIDTH; m_wndSplitterHorz.Create(WS_CHILD | WS_VISIBLE, rcSpl, this, IDC_SPLITTER_IRC); AddAnchor(IDC_BN_IRCCONNECT, BOTTOM_LEFT); AddAnchor(IDC_CLOSECHAT, BOTTOM_LEFT); AddAnchor(IDC_CHATSEND, BOTTOM_RIGHT); AddAnchor(m_wndFormat, BOTTOM_LEFT); AddAnchor(m_wndInput, BOTTOM_LEFT, BOTTOM_RIGHT); AddAnchor(m_wndNicks, TOP_LEFT, BOTTOM_LEFT); AddAnchor(m_wndChanList, TOP_LEFT, BOTTOM_RIGHT); AddAnchor(m_wndChanSel, TOP_LEFT, TOP_RIGHT); AddAnchor(m_wndSplitterHorz, TOP_LEFT, BOTTOM_LEFT); // Vista: Remove the TBSTYLE_TRANSPARENT to avoid flickering (can be done only after the toolbar was initially created with TBSTYLE_TRANSPARENT !?) m_wndFormat.ModifyStyle((theApp.m_ullComCtrlVer >= MAKEDLLVERULL(6, 16, 0, 0)) ? TBSTYLE_TRANSPARENT : 0, TBSTYLE_TOOLTIPS); m_wndFormat.SetExtendedStyle(m_wndFormat.GetExtendedStyle() | TBSTYLE_EX_MIXEDBUTTONS); TBBUTTON atb[5] = {0}; atb[0].iBitmap = 0; atb[0].idCommand = IDC_SMILEY; atb[0].fsState = TBSTATE_ENABLED; atb[0].fsStyle = BTNS_BUTTON | BTNS_AUTOSIZE; atb[0].iString = -1; atb[1].iBitmap = 1; atb[1].idCommand = IDC_BOLD; atb[1].fsState = TBSTATE_ENABLED; atb[1].fsStyle = BTNS_BUTTON | BTNS_AUTOSIZE; atb[1].iString = -1; atb[2].iBitmap = 2; atb[2].idCommand = IDC_UNDERLINE; atb[2].fsState = TBSTATE_ENABLED; atb[2].fsStyle = BTNS_BUTTON | BTNS_AUTOSIZE; atb[2].iString = -1; atb[3].iBitmap = 3; atb[3].idCommand = IDC_COLOUR; atb[3].fsState = TBSTATE_ENABLED; atb[3].fsStyle = BTNS_BUTTON | BTNS_AUTOSIZE; atb[3].iString = -1; atb[4].iBitmap = 4; atb[4].idCommand = IDC_RESET; atb[4].fsState = TBSTATE_ENABLED; atb[4].fsStyle = BTNS_BUTTON | BTNS_AUTOSIZE; atb[4].iString = -1; m_wndFormat.AddButtons(_countof(atb), atb); CSize size; m_wndFormat.GetMaxSize(&size); ::SetWindowPos(m_wndFormat, NULL, 0, 0, size.cx, size.cy, SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE); int iPosStatInit = rcSpl.left; int iPosStatNew = thePrefs.GetSplitterbarPositionIRC(); if (iPosStatNew > SPLITTER_HORZ_RANGE_MAX) iPosStatNew = SPLITTER_HORZ_RANGE_MAX; else if (iPosStatNew < SPLITTER_HORZ_RANGE_MIN) iPosStatNew = SPLITTER_HORZ_RANGE_MIN; rcSpl.left = iPosStatNew; rcSpl.right = iPosStatNew + SPLITTER_HORZ_WIDTH; if (iPosStatNew != iPosStatInit) { m_wndSplitterHorz.MoveWindow(rcSpl); DoResize(iPosStatNew - iPosStatInit); } Localize(); m_wndChanList.Init(); m_wndNicks.Init(); m_wndNicks.SetColumnWidth(0, LVSCW_AUTOSIZE_USEHEADER); m_wndChanSel.Init(); OnBackcolor(); // Design Settings [eWombat/Stulle] - Max OnChatTextChange(); return true; }