Exemplo n.º 1
0
void STimeEdit::SetMins(int nMins)
{
    m_nMins = nMins;

    SStringW strText;
    strText.Format(L"%02d:%02d", m_nHours, m_nMins);
    SetWindowText(strText);
}
Exemplo n.º 2
0
void CMainDlg::InsertSingleInfo(tagMusicInfo pMusicInfo, int nNum)
{
	/*---------------------------------------------- listboxex动态插入 beg -----------------------------------------------------*/
	//m_SeleInfoMap.clear();
	SListBoxEx *pMusicLbe=FindChildByName2<SListBoxEx>(L"music_lbe");
	if(pMusicLbe)
	{
		SStringW m_sTemp;     //信息
		SStringW StrTotleTime;//时间
		DWORD dwTotleTime = pMusicInfo.dwTime;
		StrTotleTime.Format(L"%u:%02u",dwTotleTime/60,dwTotleTime%60);
		if (nNum%2)
		{
			m_sTemp.Format(L"<item>\
							  <img skin=\"_skin.logo.skin\" pos=\"5,5,55,55\" />\
							  <text pos=\"70,5\"  valign=\"middle\" align=\"left\" colorText=\"#CDD7E1\" >歌曲:%s </text>\
							  <text pos=\"70,20\" valign=\"middle\" align=\"left\" colorText=\"#CDD7E1\" >歌手:%s </text>\
							  <text pos=\"70,35\" valign=\"middle\" align=\"left\" colorText=\"#CDD7E1\" >时长:%s 交流群:229313785 </text>\
							 </item>",pMusicInfo.szTitle,pMusicInfo.szArtist,StrTotleTime);	
		}else
		{
Exemplo n.º 3
0
SStringW Color2Hex(COLORREF cr)
{
	SStringW str;
    str.Format(L"#%02x%02x%02x%02x",GetRValue(cr),GetGValue(cr),GetBValue(cr),GetAValue(cr));
	return str;
}