mrRee
October 28th, 2004, 02:14 AM
The problem is: when i call the dialog box by click on a button, the dialog box that contain rich edit control didn't appear. I had try to initialize the common control in WinMain, at WM_INITDIALOG, before the DialogBox(...); but they all failed.
This how i initialize the common control:
INITCOMMONCONTROLSEX initCmnCtrls;
initCmnCtrls.dwSize = sizeof(initCmnCtrls);
initCmnCtrls.dwICC = 0x00004000;
InitCommonControlsEx(&initCmnCtrls);
HMODULE hModule = LoadLibrary("D:\\WINNT\\system32\\RichEd20.dll");
if( hModule == NULL )
MessageBox(NULL, "This page requires RichEd20.dll", "Error", MB_OK | MB_ICONERROR );
for InitCmnCtrls.dwICC=0x000040000; i also tried with
InitCmnCtrls.dwICC=ICC_WIN95_CLASSES ; but it also didn't work..
p/s:there is no compile or linking error..I had include comctl32.lib, comctrl.h and richedit.h to my program..
This how i initialize the common control:
INITCOMMONCONTROLSEX initCmnCtrls;
initCmnCtrls.dwSize = sizeof(initCmnCtrls);
initCmnCtrls.dwICC = 0x00004000;
InitCommonControlsEx(&initCmnCtrls);
HMODULE hModule = LoadLibrary("D:\\WINNT\\system32\\RichEd20.dll");
if( hModule == NULL )
MessageBox(NULL, "This page requires RichEd20.dll", "Error", MB_OK | MB_ICONERROR );
for InitCmnCtrls.dwICC=0x000040000; i also tried with
InitCmnCtrls.dwICC=ICC_WIN95_CLASSES ; but it also didn't work..
p/s:there is no compile or linking error..I had include comctl32.lib, comctrl.h and richedit.h to my program..