아래 내용과 같이 Custom Class 의 RegisterWindowClass() 안에서 윈도우 스타일에 CS_GLOBALCLASS를 추가
After using AfxGetInstanceHandle() to load a language DLL for my application I
found the resource dialogs which contained the custom controls began to fail
from within CreateDialogIndirect.
When a window class is registered that class name is good for that application's
instance. After loading the language DLL the dialogs now reside within a separate
instance.
The solution I found was to add CS_GLOBALCLASS to the class registration.
wndcls.style = CS_GLOBALCLASS | CS_DBLCLKS | CS_HREDRAW | CS_VREDRAW;
Further reading:
Registering a Class in a DLL
https://bluebami.tistory.com/28 [주관적인 일상]
MFC 확장 DLL 프로젝트 생성하기 (0) | 2021.09.23 |
---|---|
MFC SDI 프로젝트 생성하기 (0) | 2021.09.23 |
MFC - SendMessage & PostMessage 의 차이점 (0) | 2018.12.03 |
댓글 영역