本文整理汇总了C++中SetAllIcons函数的典型用法代码示例。如果您正苦于以下问题:C++ SetAllIcons函数的具体用法?C++ SetAllIcons怎么用?C++ SetAllIcons使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了SetAllIcons函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ModifyStyle
void CClosableTabCtrl::InternalInit()
{
ModifyStyle(0, TCS_OWNERDRAWFIXED);
#if 1
// Under Vista Aero, all tab controls get by default the TCS_HOTTRACK
// style even if it was not specified within the resource file. Though, to 'see'
// the hot tracking effect the control also need to get initialized explicitly with
// the WS_CLIPCHILDREN style within a *seperate* function call. Yes, there is no
// logic to all this, not at all. It simply is that way.
//
// So, do *not* "optimize" that code by using only one "ModifyStyle" function call.
// The 2nd function call to "ModifyStyle" is very much by intention!
//
// However, the hot tracking effect which is achived this way does not survive a
// theme change. After the theme is changed (regardless whether we switch between
// Vista themes or from/to a non-Vista theme), the hot tracking effect is gone even
// if we try to modify the styles again within OnThemeChanged...
if (theApp.IsVistaThemeActive())
ModifyStyle(0, WS_CLIPCHILDREN);
#else
// Remove the automatically applied hot tracking effect to avoid that the tab control
// may use it when it also sets the WS_CLIPCHILDREN (for other reasons) later.
ModifyStyle(TCS_HOTTRACK, 0);
#endif
SetAllIcons();
}
示例2: SetPrefsKey
void CDownloadClientsCtrl::Init()
{
SetPrefsKey(_T("DownloadClientsCtrl"));
SetExtendedStyle(LVS_EX_FULLROWSELECT | LVS_EX_INFOTIP);
InsertColumn(0, GetResString(IDS_QL_USERNAME), LVCFMT_LEFT, DFLT_CLIENTNAME_COL_WIDTH);
InsertColumn(1, GetResString(IDS_CD_CSOFT), LVCFMT_LEFT, DFLT_CLIENTSOFT_COL_WIDTH);
InsertColumn(2, GetResString(IDS_FILE), LVCFMT_LEFT, DFLT_FILENAME_COL_WIDTH);
InsertColumn(3, GetResString(IDS_DL_SPEED), LVCFMT_RIGHT, DFLT_DATARATE_COL_WIDTH);
InsertColumn(4, GetResString(IDS_AVAILABLEPARTS), LVCFMT_LEFT, DFLT_PARTSTATUS_COL_WIDTH);
InsertColumn(5, GetResString(IDS_CL_TRANSFDOWN), LVCFMT_RIGHT, DFLT_SIZE_COL_WIDTH);
InsertColumn(6, GetResString(IDS_CL_TRANSFUP), LVCFMT_RIGHT, DFLT_SIZE_COL_WIDTH);
InsertColumn(7, GetResString(IDS_META_SRCTYPE), LVCFMT_LEFT, 100);
SetAllIcons();
Localize();
LoadSettings();
//Xman client percentage
CFont* pFont = GetFont();
LOGFONT lfFont = {0};
pFont->GetLogFont(&lfFont);
lfFont.lfHeight = 11;
m_fontBoldSmaller.CreateFontIndirect(&lfFont);
//Xman end
SetSortArrow();
SortItems(SortProc, GetSortItem() + (GetSortAscending() ? 0 : 100));
}
示例3: SetName
void CClientListCtrl::Init()
{
SetName(_T("ClientListCtrl"));
CImageList ilDummyImageList; //dummy list for getting the proper height of listview entries
ilDummyImageList.Create(1, theApp.GetSmallSytemIconSize().cy,theApp.m_iDfltImageListColorFlags|ILC_MASK, 1, 1);
SetImageList(&ilDummyImageList, LVSIL_SMALL);
ASSERT( (GetStyle() & LVS_SHAREIMAGELISTS) == 0 );
ilDummyImageList.Detach();
SetExtendedStyle(LVS_EX_FULLROWSELECT);
InsertColumn(0,GetResString(IDS_QL_USERNAME),LVCFMT_LEFT,150,0);
InsertColumn(1,GetResString(IDS_CL_UPLOADSTATUS),LVCFMT_LEFT,150,1);
InsertColumn(2,GetResString(IDS_CL_TRANSFUP),LVCFMT_LEFT,150,2);
InsertColumn(3,GetResString(IDS_CL_DOWNLSTATUS),LVCFMT_LEFT,150,3);
InsertColumn(4,GetResString(IDS_CL_TRANSFDOWN),LVCFMT_LEFT,150,4);
InsertColumn(5,GetResString(IDS_CD_CSOFT),LVCFMT_LEFT,150,5);
InsertColumn(6,GetResString(IDS_CONNECTED),LVCFMT_LEFT,150,6);
CString coltemp;
coltemp=GetResString(IDS_CD_UHASH);coltemp.Remove(':');
InsertColumn(7,coltemp,LVCFMT_LEFT,150,7);
SetAllIcons();
Localize();
LoadSettings();
SetSortArrow();
SortItems(SortProc, GetSortItem()+ (GetSortAscending()? 0:100));
}
示例4: SetName
void CQueueListCtrl::Init()
{
SetName(_T("QueueListCtrl"));
CImageList ilDummyImageList; //dummy list for getting the proper height of listview entries
ilDummyImageList.Create(1, theApp.GetSmallSytemIconSize().cy,theApp.m_iDfltImageListColorFlags|ILC_MASK, 1, 1);
SetImageList(&ilDummyImageList, LVSIL_SMALL);
ASSERT( (GetStyle() & LVS_SHAREIMAGELISTS) == 0 );
ilDummyImageList.Detach();
SetExtendedStyle(LVS_EX_FULLROWSELECT);
InsertColumn(0,GetResString(IDS_QL_USERNAME),LVCFMT_LEFT,150,0);
InsertColumn(1,GetResString(IDS_FILE),LVCFMT_LEFT,275,1);
InsertColumn(2,GetResString(IDS_FILEPRIO),LVCFMT_LEFT,110,2);
InsertColumn(3,GetResString(IDS_QL_RATING),LVCFMT_LEFT,60,3);
InsertColumn(4,GetResString(IDS_SCORE),LVCFMT_LEFT,60,4);
InsertColumn(5,GetResString(IDS_ASKED),LVCFMT_LEFT,60,5);
InsertColumn(6,GetResString(IDS_LASTSEEN),LVCFMT_LEFT,110,6);
InsertColumn(7,GetResString(IDS_ENTERQUEUE),LVCFMT_LEFT,110,7);
InsertColumn(8,GetResString(IDS_BANNED),LVCFMT_LEFT,60,8);
InsertColumn(9,GetResString(IDS_UPSTATUS),LVCFMT_LEFT,100,9);
//==>Modversion [shadow2004]
#ifdef MODVERSION
InsertColumn(10,GetResString(IDS_CLIENTSOFTWARE),LVCFMT_LEFT,100,10);
#endif //Modversion
//<==Modversion [shadow2004]
SetAllIcons();
Localize();
LoadSettings();
// Barry - Use preferred sort order from preferences
SetSortArrow();
SortItems(SortProc, GetSortItem() + (GetSortAscending() ? 0:100));
}
示例5: SetName
void CDownloadClientsCtrl::Init()
{
SetName(_T("DownloadClientsCtrl"));
CImageList ilDummyImageList; //dummy list for getting the proper height of listview entries
ilDummyImageList.Create(1, theApp.GetSmallSytemIconSize().cy,theApp.m_iDfltImageListColorFlags|ILC_MASK, 1, 1);
SetImageList(&ilDummyImageList, LVSIL_SMALL);
ASSERT( (GetStyle() & LVS_SHAREIMAGELISTS) == 0 );
ilDummyImageList.Detach();
SetExtendedStyle(LVS_EX_FULLROWSELECT);
InsertColumn(0, GetResString(IDS_QL_USERNAME), LVCFMT_LEFT, 165);
InsertColumn(1, GetResString(IDS_CD_CSOFT), LVCFMT_LEFT, 90);
InsertColumn(2, GetResString(IDS_FILE), LVCFMT_LEFT, 235);
InsertColumn(3, GetResString(IDS_DL_SPEED), LVCFMT_LEFT, 65);
InsertColumn(4, GetResString(IDS_AVAILABLEPARTS), LVCFMT_LEFT, 150);
InsertColumn(5, GetResString(IDS_CL_TRANSFDOWN), LVCFMT_LEFT, 115);
InsertColumn(6, GetResString(IDS_CL_TRANSFUP), LVCFMT_LEFT, 115);
InsertColumn(7, GetResString(IDS_META_SRCTYPE), LVCFMT_LEFT, 60);
SetAllIcons();
Localize();
LoadSettings();
// Barry - Use preferred sort order from preferences
SetSortArrow();
}
示例6: SetAllIcons
void CSharedFilesWnd::OnSysColorChange()
{
pop_bar.SetBkColor(GetSysColor(COLOR_3DFACE));
pop_baraccept.SetBkColor(GetSysColor(COLOR_3DFACE));
pop_bartrans.SetBkColor(GetSysColor(COLOR_3DFACE));
CResizableDialog::OnSysColorChange();
SetAllIcons();
}
示例7: ModifyStyle
void CChatSelector::Init(CChatWnd *pParent)
{
m_pParent = pParent;
ModifyStyle(0, WS_CLIPCHILDREN);
SetAllIcons();
VERIFY( (m_Timer = SetTimer(20, 1500, 0)) != NULL );
}
示例8: NewChannel
void CIrcChannelTabCtrl::Init()
{
//This adds the two static windows, Status and ChanneList
NewChannel( GetResString(IDS_STATUS), 1 );
NewChannel( GetResString(IDS_IRC_CHANNELLIST), 2);
//Initialize the IRC window to be in the ChannelList
m_pCurrentChannel = (Channel*)m_ptrlistChannel.GetTail();
SetCurSel(0);
OnTcnSelchangeTab2( NULL, NULL );
SetAllIcons();
}
示例9: SendMessage
void CSharedDirsTreeCtrl::Initalize(CSharedFilesCtrl* pSharedFilesCtrl){
m_pSharedFilesCtrl = pSharedFilesCtrl;
SendMessage(CCM_SETUNICODEFORMAT, TRUE);
//WORD wWinVer = thePrefs.GetWindowsVersion();
m_bUseIcons = true;/*(wWinVer == _WINVER_2K_ || wWinVer == _WINVER_XP_ || wWinVer == _WINVER_ME_);*/
SetAllIcons();
InitalizeStandardItems();
FilterTreeReloadTree();
CreateMenues();
}
示例10: SetAllIcons
BOOL CChatWnd::OnInitDialog()
{
CResizableDialog::OnInitDialog();
inputtext.SetLimitText(MAX_CLIENT_MSG_LEN);
chatselector.Init();
m_FriendListCtrl.Init();
SetAllIcons();
CRect rcSpl;
GetDlgItem(IDC_LIST2)->GetWindowRect(rcSpl);
ScreenToClient(rcSpl);
CRect rc;
GetWindowRect(rc);
ScreenToClient(rc);
rcSpl.bottom = rc.bottom - 5;
rcSpl.left = rcSpl.right + SPLITTER_MARGIN;
rcSpl.right = rcSpl.left + SPLITTER_WIDTH;
m_wndSplitterchat.Create(WS_CHILD | WS_VISIBLE, rcSpl, this, IDC_SPLITTER_FRIEND);
int PosStatVinit = rcSpl.left;
int PosStatVnew = thePrefs.GetSplitterbarPositionFriend();
UINT max = SPLITTER_RANGE_HEIGHT;
UINT min = SPLITTER_RANGE_WIDTH;
if (thePrefs.GetSplitterbarPositionFriend() > max)
PosStatVnew = max;
else if (thePrefs.GetSplitterbarPositionFriend() < min)
PosStatVnew = min;
rcSpl.left = PosStatVnew;
rcSpl.right = PosStatVnew + SPLITTER_WIDTH;
m_wndSplitterchat.MoveWindow(rcSpl);
DoResize(PosStatVnew - PosStatVinit);
AddAnchor(IDC_FRIENDSICON, TOP_LEFT);
AddAnchor(IDC_FRIENDS_LBL, TOP_LEFT);
AddAnchor(IDC_FRIENDS_NAME, BOTTOM_LEFT);
AddAnchor(IDC_FRIENDS_USERHASH, BOTTOM_LEFT);
AddAnchor(IDC_FRIENDS_CLIENT, BOTTOM_LEFT);
AddAnchor(IDC_FRIENDS_IDENT, BOTTOM_LEFT);
AddAnchor(IDC_FRIENDS_UPLOADED, BOTTOM_LEFT);
AddAnchor(IDC_FRIENDS_DOWNLOADED, BOTTOM_LEFT);
Localize();
theApp.friendlist->ShowFriends();
return TRUE;
}
示例11: SetPrefsKey
void CUploadListCtrl::Init()
{
SetPrefsKey(_T("UploadListCtrl"));
SetExtendedStyle(LVS_EX_FULLROWSELECT | LVS_EX_INFOTIP);
// ==> Run eMule as NT Service [leuk_he/Stulle] - Stulle
// workaround running MFC as service
if (!theApp.IsRunningAsService())
{
// <== Run eMule as NT Service [leuk_he/Stulle] - Stulle
CToolTipCtrl* tooltip = GetToolTips();
if (tooltip) {
m_tooltip->SubclassWindow(tooltip->m_hWnd);
tooltip->ModifyStyle(0, TTS_NOPREFIX);
tooltip->SetDelayTime(TTDT_AUTOPOP, 20000);
tooltip->SetDelayTime(TTDT_INITIAL, thePrefs.GetToolTipDelay()*1000);
}
} // Run eMule as NT Service [leuk_he/Stulle] - Stulle
InsertColumn(0, GetResString(IDS_QL_USERNAME), LVCFMT_LEFT, DFLT_CLIENTNAME_COL_WIDTH);
InsertColumn(1, GetResString(IDS_FILE), LVCFMT_LEFT, DFLT_FILENAME_COL_WIDTH);
InsertColumn(2, GetResString(IDS_DL_SPEED), LVCFMT_RIGHT, DFLT_DATARATE_COL_WIDTH);
InsertColumn(3, GetResString(IDS_DL_TRANSF), LVCFMT_RIGHT, DFLT_DATARATE_COL_WIDTH);
InsertColumn(4, GetResString(IDS_WAITED), LVCFMT_LEFT, 60);
InsertColumn(5, GetResString(IDS_UPLOADTIME), LVCFMT_LEFT, 80);
InsertColumn(6, GetResString(IDS_STATUS), LVCFMT_LEFT, 100);
InsertColumn(7, GetResString(IDS_UPSTATUS), LVCFMT_LEFT, DFLT_PARTSTATUS_COL_WIDTH);
InsertColumn(8, GetResString(IDS_CD_CSOFT), LVCFMT_LEFT, 90); //Xman version see clientversion in every window
InsertColumn(9, GetResString(IDS_UPDOWNUPLOADLIST), LVCFMT_LEFT, 90); //Xman show complete up/down in uploadlist
// ==> Uploading Chunk Detail Display [SiRoB/Fafner] - Stulle
InsertColumn(10,GetResString(IDS_CHUNK),LVCFMT_LEFT,100);
// <== Uploading Chunk Detail Display [SiRoB/Fafner] - Stulle
SetAllIcons();
Localize();
LoadSettings();
//Xman client percentage
CFont* pFont = GetFont();
LOGFONT lfFont = {0};
pFont->GetLogFont(&lfFont);
lfFont.lfHeight = 11;
m_fontBoldSmaller.CreateFontIndirect(&lfFont);
//Xman end
SetSortArrow();
SortItems(SortProc, GetSortItem() + (GetSortAscending() ? 0 : 100));
}
示例12: SetPrefsKey
void CFriendListCtrl::Init()
{
SetPrefsKey(_T("FriendListCtrl"));
SetExtendedStyle(LVS_EX_FULLROWSELECT | LVS_EX_INFOTIP);
RECT rcWindow;
GetWindowRect(&rcWindow);
InsertColumn(0, GetResString(IDS_QL_USERNAME), LVCFMT_LEFT, rcWindow.right - rcWindow.left - 4);
SetAllIcons();
theApp.friendlist->SetWindow(this);
LoadSettings();
SetSortArrow();
}
示例13: SetAllIcons
void CServerWnd::OnBackcolor()
{
clrSrvColor = thePrefs.GetStyleBackColor(window_styles, style_w_server);
if(clrSrvColor == CLR_DEFAULT)
clrSrvColor = thePrefs.GetStyleBackColor(window_styles, style_w_default);
m_brMyBrush.DeleteObject();
if(clrSrvColor != CLR_DEFAULT)
m_brMyBrush.CreateSolidBrush(clrSrvColor);
else
m_brMyBrush.CreateSolidBrush(GetSysColor(COLOR_BTNFACE));
StatusSelector.m_clrBack = clrSrvColor;
SetAllIcons();
}
示例14: SetExtendedStyle
void CKadContactListCtrl::Init()
{
SetExtendedStyle(LVS_EX_FULLROWSELECT | LVS_EX_INFOTIP);
InsertColumn(colID,GetResString(IDS_ID),LVCFMT_LEFT,100);
InsertColumn(colType,GetResString(IDS_TYPE) ,LVCFMT_LEFT,50);
InsertColumn(colDistance,GetResString(IDS_KADDISTANCE),LVCFMT_LEFT,50);
SetAllIcons();
Localize();
LoadSettings();
int iSortItem = GetSortItem();
bool bSortAscending = GetSortAscending();
SetSortArrow(iSortItem, bSortAscending);
SortItems(SortProc, MAKELONG(iSortItem, (bSortAscending ? 0 : 0x0001)));
}
示例15: GetParent
void CChatSelector::Init()
{
m_hwndCloseBtn = GetParent()->GetDlgItem(IDC_CCLOSE)->m_hWnd;
::SetParent(m_hwndCloseBtn, m_hWnd);
m_hwndSendBtn = GetParent()->GetDlgItem(IDC_CSEND)->m_hWnd;
::SetParent(m_hwndSendBtn, m_hWnd);
m_hwndMessageBox = GetParent()->GetDlgItem(IDC_CMESSAGE)->m_hWnd;
::SetParent(m_hwndMessageBox, m_hWnd);
ModifyStyle(0, WS_CLIPCHILDREN);
SetAllIcons();
VERIFY( (m_Timer = SetTimer(20, 1500, 0)) != NULL );
}