1. hWnd 얻어오기
방법1:
CWnd *pWnd = AfxGetMainWnd();
HWND hWnd = pWnd->m_hWnd;
방법2:
CFrameWnd *hFrameWnd = GetParentFrame();
HWND hWnd = hFrameWnd->m_hWnd;
2. hInst 얻어오기
HINSTANCE hInst = AfxGetInstanceHandle();
3. APP 받아오기
CWinApp* pApp = AfxGetApp();
pApp->LoadIcon(IDR_MAINFRAME);