CStringW wstr ;
wstr.Format( L"%d° %d' %d''", 3, 20, 5 ) ;
wchar_t* p3 = (LPWSTR)(LPCWSTR)wstr ;
MessageBoxW( this->GetSafeHwnd(), p3, NULL, MB_OK ) ;
::SetWindowTextW( GetDlgItem(IDC_EDIT1)->GetSafeHwnd(), p3) ;
::SetWindowTextW( GetDlgItem(IDC_STATIC_TEST)->GetSafeHwnd(), p3 ) ;
m_ctrl_list_test.InsertColumn( 0, _T("test"), LVCFMT_CENTER, 200 ) ;
LVITEMW item ;
item.mask = LVIF_TEXT | LVIF_IMAGE ;
item.iItem = 0 ;
item.iSubItem = 0 ;
item.pszText = (LPWSTR)(LPCWSTR)p3 ;
::SendMessageW( m_ctrl_list_test.GetSafeHwnd(), LVM_INSERTITEMW, 0, (LPARAM)&item ) ;
::SendMessageW( m_ctrl_list_test.GetSafeHwnd(), LVM_SETITEMW, 0, (LPARAM)&item ) ;
'Programming > MFC' 카테고리의 다른 글
WM_QUERYENDSESSION메세지로 운영체체 종료 알림 (0) | 2007.11.03 |
---|---|
작업 표시줄에 프로그램 타이틀 보이지 않게 하기 (0) | 2007.10.25 |
View의 배경색 바꾸기 (0) | 2007.10.24 |
타이틀바를 없앤다. (0) | 2007.10.24 |
[MFC] Thread 정복 2 - 스레드 종료하기 (0) | 2007.10.10 |