本文整理汇总了C++中CCANMonitorApp::LoadIcon方法的典型用法代码示例。如果您正苦于以下问题:C++ CCANMonitorApp::LoadIcon方法的具体用法?C++ CCANMonitorApp::LoadIcon怎么用?C++ CCANMonitorApp::LoadIcon使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CCANMonitorApp
的用法示例。
在下文中一共展示了CCANMonitorApp::LoadIcon方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnCreateClient
BOOL CMsgSignalDBWnd::OnCreateClient(LPCREATESTRUCT /*lpcs*/,
CCreateContext* pContext)
{
// Set Icon for DB Window
SetIcon( theApp.LoadIcon( IDI_ICO_DB_EDITOR ), TRUE );
// Create Static Splitter Window with 1 ROW and 2 COLUMNS
m_bSplitWndCreated =
m_omSplitterWnd.CreateStatic( this, // Parent Frame Window
SPLT_ONE_ROWS, // #Rows
SPLT_ONE_COLS, // #Columns
WS_CHILD |
WS_VISIBLE |
WS_BORDER, // Window Style
AFX_IDW_PANE_FIRST); // Splitter NOT Nested
// Get size of Frame wnd
CSize om_Size(0,0);
vCalculateSplitterPosition(om_Size);
if ( TRUE == m_bSplitWndCreated )
{
// Create the Right Pane for static splitter window
CMsgSgDetView::sm_sDbParams = m_sDbParams;
m_bSplitWndCreated =
m_omSplitterWnd.CreateView( FIRST_ROW, // #Row
SECOND_COL, // #Column
RUNTIME_CLASS(CMsgSgDetView), // View associated with
om_Size, // Sizeof Pane
pContext);
}
if ( TRUE == m_bSplitWndCreated )
{
// Create the Left Pane for static splitter window
CMsgSgTreeView::sm_sDbParams = m_sDbParams;
m_bSplitWndCreated =
m_omSplitterWnd.CreateView( FIRST_ROW, // #Row
FIRST_COL, // #Column
RUNTIME_CLASS(CMsgSgTreeView), // View associated with
om_Size, //CSize( 350,100 ), // Sizeof Pane
pContext);
}
CString omTitle = _T("DatabaseEditor - ");
omTitle += m_sDbParams.m_omBusName;
SetWindowText(omTitle.GetBuffer(MAX_PATH));
if (m_sDbParams.m_eBus == J1939)
{
CMsgSignalDBWnd::sm_bValidJ1939Wnd = TRUE;
}
return m_bSplitWndCreated;
}
示例2: OnCreateClient
BOOL CNotificWnd::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
//Creation of the listbox window
CRect omRect;
this->GetClientRect(omRect);
m_omListBox.Create(WS_CHILD | WS_VISIBLE | WS_HSCROLL | WS_VSCROLL
|LBS_HASSTRINGS |LBS_NOTIFY | LBS_WANTKEYBOARDINPUT |
LBS_NOINTEGRALHEIGHT | LBS_EXTENDEDSEL,
omRect, this, IDC_LSTB_OUTPUT);
// Set the window icon
SetIcon(theApp.LoadIcon(IDI_ICO_WRITE), TRUE);
m_unTimer = SetTimer(0x50, 100, NULL);
return CMDIChildBase::OnCreateClient(lpcs, pContext);
}