Created
August 2, 2020 01:52
-
-
Save z4none/a63ac86c18284b09faba6999bd1a0c08 to your computer and use it in GitHub Desktop.
Revisions
-
z4none created this gist
Aug 2, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ EXTERN_C IMAGE_DOS_HEADER __ImageBase; #define CURRENT_HINSTANCE ((HINSTANCE)&__ImageBase) CImage image; image.LoadFromResource(CURRENT_HINSTANCE, IDB_BG); m_bg.Attach(image.Detach()); m_dc_bg.CreateCompatibleDC(); m_dc_bg.SelectBitmap(m_bg);