Click here to Skip to main content
16,011,647 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Customized Common Dialog Pin
Jim Crafton10-Dec-04 6:36
Jim Crafton10-Dec-04 6:36 
GeneralRe: Customized Common Dialog Pin
mayoung10-Dec-04 6:49
mayoung10-Dec-04 6:49 
GeneralRe: Customized Common Dialog Pin
bolivar12314-Dec-04 7:23
bolivar12314-Dec-04 7:23 
GeneralRe: Customized Common Dialog Pin
mayoung16-Dec-04 5:11
mayoung16-Dec-04 5:11 
GeneralRe: Customized Common Dialog Pin
mayoung16-Dec-04 6:11
mayoung16-Dec-04 6:11 
GeneralRe: Customized Common Dialog Pin
bolivar12316-Dec-04 9:25
bolivar12316-Dec-04 9:25 
GeneralRe: Customized Common Dialog Pin
mayoung16-Dec-04 10:54
mayoung16-Dec-04 10:54 
GeneralProblems with app icon and TaskManager Pin
Jim Crafton10-Dec-04 5:47
Jim Crafton10-Dec-04 5:47 
I seem to be running afoul of the TaskManager in some way that I am unaware of.
In the VCF we have the core GUI library that contains an .ICO file that's used in the WNDCLASSEXW struct before calling RegisterClassExW().
I fill it in like so:
WNDCLASSEXW wcex;

wcex.cbSize = sizeof(wcex);

wcex.style = CS_HREDRAW | CS_VREDRAW | CS_DBLCLKS;
wcex.lpfnWndProc = (WNDPROC)wndProc;
wcex.cbClsExtra = 0;
wcex.cbWndExtra = 0;
wcex.hInstance = (HINSTANCE)::GetModuleHandle(NULL);
wcex.hIcon = LoadIconW( Win32ToolKit::getInstanceHandle(), L"DefaultVCFIcon" );
wcex.hCursor= NULL;//LoadCursor(NULL, IDC_ARROW);
wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
wcex.lpszMenuName = NULL;
wcex.lpszClassName = className.c_str();
wcex.hIconSm = NULL;


This works fine. But sometimes when I call up the TaskManager there is no entry for the executable!. Using Alt+Tab, the window icon is there just fine.
It shows in the task bar just fine.

If I change the window icon dynamically by calling
HICON winIcon = //get the HICON image
SetClassLong (hwnd_, GCL_HICON, (LONG)winIcon);

Is this incorrect? Using WM_SETICON seemed to have problems as well.



¡El diablo está en mis pantalones! ¡Mire, mire!

Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!

SELECT * FROM User WHERE Clue > 0
0 rows returned

GeneralWarnings C4663, C4018, C4100 Pin
Robert Valentino10-Dec-04 5:03
Robert Valentino10-Dec-04 5:03 
GeneralRe: Warnings C4663, C4018, C4100 Pin
Antti Keskinen10-Dec-04 5:42
Antti Keskinen10-Dec-04 5:42 
GeneralRe: Warnings C4663, C4018, C4100 Pin
Member 89747210-Dec-04 7:45
Member 89747210-Dec-04 7:45 
GeneralRe: Warnings C4663, C4018, C4100 Pin
Robert Valentino10-Dec-04 8:23
Robert Valentino10-Dec-04 8:23 
GeneralRe: Warnings C4663, C4018, C4100 Pin
Antti Keskinen10-Dec-04 9:41
Antti Keskinen10-Dec-04 9:41 
GeneralRe: Warnings C4663, C4018, C4100 Pin
bolivar12316-Dec-04 10:39
bolivar12316-Dec-04 10:39 
Generaldrawing to a bitmap in memory Pin
Member 151798010-Dec-04 4:14
Member 151798010-Dec-04 4:14 
GeneralRe: drawing to a bitmap in memory Pin
Andy Hunter10-Dec-04 10:42
Andy Hunter10-Dec-04 10:42 
Questiondoes OnCtlColor work for buttons? Pin
zoid ! 10-Dec-04 4:10
zoid ! 10-Dec-04 4:10 
AnswerRe: does OnCtlColor work for buttons? Pin
G. Steudtel10-Dec-04 6:40
G. Steudtel10-Dec-04 6:40 
GeneralRe: does OnCtlColor work for buttons? Pin
prcarp10-Dec-04 7:12
prcarp10-Dec-04 7:12 
GeneralWindows Forms not available Pin
User 58261910-Dec-04 3:44
User 58261910-Dec-04 3:44 
GeneralRe: Windows Forms not available Pin
BlackDice10-Dec-04 9:50
BlackDice10-Dec-04 9:50 
GeneralScaleViewportExt and SetViewOrg related query Pin
JHAKAS10-Dec-04 3:40
JHAKAS10-Dec-04 3:40 
GeneralRe: ScaleViewportExt and SetViewOrg related query Pin
JHAKAS10-Dec-04 20:08
JHAKAS10-Dec-04 20:08 
GeneralSDI, MDI or dialog based Pin
help_cplus10-Dec-04 3:31
help_cplus10-Dec-04 3:31 
GeneralRe: SDI, MDI or dialog based Pin
Maximilien10-Dec-04 3:46
Maximilien10-Dec-04 3:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.