Changeset 122 for trunk/Utilities/AtlDialogSample
- Timestamp:
- Sep 10, 2012, 2:03:55 PM (10 years ago)
- Location:
- trunk/Utilities/AtlDialogSample
- Files:
-
- 1 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Utilities/AtlDialogSample/AtlDialogSample.cpp
r71 r122 23 23 BEGIN_MSG_MAP(CMainDialog) 24 24 MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog) 25 MESSAGE_HANDLER(WM_DESTROY, OnDestroy) 25 26 COMMAND_ID_HANDLER(IDCANCEL, OnCommand) 26 27 COMMAND_ID_HANDLER(IDOK, OnCommand) 27 28 END_MSG_MAP() 29 30 private: 31 CWindow m_PictureStatic; 32 HBITMAP m_hPictureBitmap; 28 33 29 34 public: … … 33 38 LRESULT OnInitDialog(UINT nMessage, WPARAM wParam, LPARAM lParam, BOOL& bHandled) 34 39 { 40 m_PictureStatic = GetDlgItem(IDC_PICTURE); 41 m_hPictureBitmap = LoadBitmap(_AtlBaseModule.GetResourceInstance(), MAKEINTRESOURCE(IDB_PICTURE)); 42 ATLASSERT(m_hPictureBitmap); 43 m_PictureStatic.SendMessage(STM_SETIMAGE, IMAGE_BITMAP, (LPARAM) m_hPictureBitmap); 35 44 ATLVERIFY(CenterWindow()); 45 return 0; 46 } 47 LRESULT OnDestroy(UINT nMessage, WPARAM wParam, LPARAM lParam, BOOL& bHandled) 48 { 49 ATLVERIFY(DeleteObject(m_hPictureBitmap)); 36 50 return 0; 37 51 } -
trunk/Utilities/AtlDialogSample/AtlDialogSample.vcxproj
r71 r122 141 141 </ItemGroup> 142 142 <ItemGroup> 143 <None Include="6uvaguzj.bmp" /> 143 144 <None Include="AtlDialogSample.rgs" /> 144 145 <None Include="ReadMe.txt" /> -
trunk/Utilities/AtlDialogSample/AtlDialogSample.vcxproj.filters
r71 r122 54 54 <Filter>Resource Files</Filter> 55 55 </None> 56 <None Include="6uvaguzj.bmp"> 57 <Filter>Resource Files</Filter> 58 </None> 56 59 </ItemGroup> 57 60 <ItemGroup> -
trunk/Utilities/AtlDialogSample/AtlDialogSample_i.c
r71 r122 7 7 8 8 /* File created by MIDL compiler version 7.00.0555 */ 9 /* at Mon Jun 25 21:16:1720129 /* at Mon Sep 10 23:56:05 2012 10 10 */ 11 11 /* Compiler settings for AtlDialogSample.idl: -
trunk/Utilities/AtlDialogSample/AtlDialogSample_i.h
r71 r122 5 5 6 6 /* File created by MIDL compiler version 7.00.0555 */ 7 /* at Mon Jun 25 21:16:1720127 /* at Mon Sep 10 23:56:05 2012 8 8 */ 9 9 /* Compiler settings for AtlDialogSample.idl:
Note: See TracChangeset
for help on using the changeset viewer.