icon loading
-
Hi all, I have an an application that is a Popup Dialog box in a dll. I'm using MFC 6.0. my problem is I'm trying to load a menu bar icon on the sucker, and I just can't get it to load. I thought I do this: SetIcon(::LoadIcon(NULL,MAKEINTRESOURCE(IDR_MAINFRAME)),FALSE); in the OnCreate Overrideable in my CDialog-derived class. Doesn't work though. It always returns 0x000000 for the HICON. any suggestions on how to do this? I'm sure I'm just putting it in the wrong place or performing the operation wrong. Any insight, comments or suggestions are greatly appreciated. Thanks!
-
Hi all, I have an an application that is a Popup Dialog box in a dll. I'm using MFC 6.0. my problem is I'm trying to load a menu bar icon on the sucker, and I just can't get it to load. I thought I do this: SetIcon(::LoadIcon(NULL,MAKEINTRESOURCE(IDR_MAINFRAME)),FALSE); in the OnCreate Overrideable in my CDialog-derived class. Doesn't work though. It always returns 0x000000 for the HICON. any suggestions on how to do this? I'm sure I'm just putting it in the wrong place or performing the operation wrong. Any insight, comments or suggestions are greatly appreciated. Thanks!
-
in debug(watch) window enter the following "@err, hr" What is the value of that expression after the line above is executed?