Icon not display on dialog box 
Author Message
 Icon not display on dialog box

Hi,

Could you please post a sample project which is able to reproduce the
problem?

Regards,
HuangTM
This posting is provided "AS IS" with no warranties, and confers no rights.



Wed, 11 May 2005 22:57:38 GMT  
 Icon not display on dialog box
Hi,

We should call GetModuleHandle(NULL) to get the handle to the application,
and provides it to the DialogBox function. Please change the code to the
following:

DialogBox(GetModuleHandle(NULL),MAKEINTRESOURCE(IDD_ASK_OPTIONAL),(HWND)NULL
,lpProcAsk);

Regards,
HuangTM
This posting is provided "AS IS" with no warranties, and confers no rights.



Mon, 16 May 2005 19:51:22 GMT  
 Icon not display on dialog box
That worked great, thanks.
Lloyd

Quote:
>-----Original Message-----
>Hi,

>We should call GetModuleHandle(NULL) to get the handle to
the application,
>and provides it to the DialogBox function. Please change
the code to the
>following:

>DialogBox(GetModuleHandle(NULL),MAKEINTRESOURCE

(IDD_ASK_OPTIONAL),(HWND)NULL
Quote:
>,lpProcAsk);

>Regards,
>HuangTM
>This posting is provided "AS IS" with no warranties, and
confers no rights.

>.



Sun, 22 May 2005 19:48:43 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. PBM: Message box not displayed after main dialog box is closed in MFC dialog-based app

2. How to display ICON on title bar of Dialog Box

3. How To Display Icon In Dialog Box - VC5.0/SP2

4. Displaying An Icon In A Dialog Box

5. dialog box not displaying on other PCs

6. dialog box not displayed after altering resource template

7. Active X control not displayed in a modal dialog box in a dll

8. Dialog Box is not displayed

9. dialog box not displaying on other PCs

10. Dialog box in DLL not displaying

11. -Dialog Boxes not Displayed

12. Common Open Dialog not displaying a dialog when file doesn't exist

 

 
Powered by phpBB® Forum Software