Created
August 2, 2020 01:52
-
-
Save z4none/a63ac86c18284b09faba6999bd1a0c08 to your computer and use it in GitHub Desktop.
ATL load image from res #atl,#wtl
This file contains 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 characters
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); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment