Click here to Skip to main content
15,914,070 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: maintaining layout of window Pin
BlackDice31-Jan-05 5:45
BlackDice31-Jan-05 5:45 
GeneralPosting File Open Dialog Pin
Sreenivasa.Murthy.G31-Jan-05 1:53
sussSreenivasa.Murthy.G31-Jan-05 1:53 
GeneralRe: Posting File Open Dialog Pin
ThatsAlok31-Jan-05 2:55
ThatsAlok31-Jan-05 2:55 
GeneralResource leak Pin
Abyss31-Jan-05 1:45
Abyss31-Jan-05 1:45 
GeneralRe: Resource leak Pin
David Crow31-Jan-05 3:55
David Crow31-Jan-05 3:55 
GeneralRe: Resource leak Pin
Blake Miller31-Jan-05 5:45
Blake Miller31-Jan-05 5:45 
GeneralRe: Resource leak Pin
Abyss31-Jan-05 20:48
Abyss31-Jan-05 20:48 
GeneralTask bar does not pop up Pin
normanS31-Jan-05 1:43
normanS31-Jan-05 1:43 
I have a Windows application programmed in C (SDK level) using VC6. My Windows 98 and Windows XP (on different PCs) are set up with task bar "Always on top" & "Auto-hide".

With my application window having the focus and maximised, the task bar pops correctly in Win98 when I bring the mouse pointer to the bottom of the monitor, but on XP, the task bar does not popup.

I register the window as:

memset(&wc,0,sizeof(wc));<br />
wc.style = CS_BYTEALIGNWINDOW | CS_VREDRAW | CS_HREDRAW | CS_DBLCLKS;<br />
wc.lpfnWndProc   = MainWindowProc;<br />
wc.cbClsExtra    = 0;<br />
wc.cbWndExtra    = 0;<br />
wc.hInstance     = hAppInst;<br />
wc.hIcon         = LoadIcon(NULL, IDI_APPLICATION);<br />
wc.hCursor       = LoadCursor (NULL, IDC_ARROW);<br />
wc.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);<br />
wc.lpszMenuName  = NULL;<br />
wc.lpszClassName = szAppName;<br />
<br />
RegisterClass (&wc);


and I create the window as:

hwndPrimary = CreateWindow(szAppName,  // window class name<br />
	szPrimaryTitleBar,<br />
	WS_POPUP | WS_BORDER, // No title bar, thin border, not resizeable!<br />
	CW_USEDEFAULT,               // initial x position<br />
	CW_USEDEFAULT,               // initial y position<br />
	CW_USEDEFAULT,               // initial x size<br />
	CW_USEDEFAULT,               // initial y size<br />
	NULL,                        // parent window handle<br />
	NULL,                        // window menu handle<br />
	hAppInst,                    // program instance handle<br />
	NULL);                       // creation parameters


and then do:
ShowWindow(hwndPrimary,sw);<br />
<br />
ShowWindow(hwndPrimary, SW_MAXIMIZE);


Note - I use window style WS_POPUP | WS_BORDER because I need maximum size client area. I can't waste space on title bar, thick border, etc.

If I do not maximise the window, the task bar pops up just fine, but the moment the application is maximised (which I need to do), the task bar does not pop up properly. The problem only occurs under Windows XP. When I run the EXE under Win98, the task bar pops up as expected.

Any suggestions?
GeneralStatic linking for ActiveX controls. Pin
pc_dev30-Jan-05 23:50
pc_dev30-Jan-05 23:50 
GeneralRe: Static linking for ActiveX controls. Pin
Cedric Moonen30-Jan-05 23:58
Cedric Moonen30-Jan-05 23:58 
Generalserial com port Pin
syed abbdul qavi30-Jan-05 23:26
syed abbdul qavi30-Jan-05 23:26 
GeneralRe: serial com port Pin
Cedric Moonen30-Jan-05 23:35
Cedric Moonen30-Jan-05 23:35 
GeneralRe: serial com port Pin
syed abbdul qavi7-Feb-05 18:30
syed abbdul qavi7-Feb-05 18:30 
GeneralGenerated #include lines format in VC 7.1 Pin
rbid30-Jan-05 22:46
rbid30-Jan-05 22:46 
GeneralJPG2AVI Pin
yingkou30-Jan-05 20:51
yingkou30-Jan-05 20:51 
GeneralRe: JPG2AVI Pin
Ted Ferenc31-Jan-05 0:16
Ted Ferenc31-Jan-05 0:16 
GeneralRe: JPG2AVI Pin
yingkou31-Jan-05 13:43
yingkou31-Jan-05 13:43 
General.Net Hello World - Help! Pin
Nick_Fi30-Jan-05 20:31
Nick_Fi30-Jan-05 20:31 
GeneralRe: .Net Hello World - Help! Pin
Yulianto.30-Jan-05 21:50
Yulianto.30-Jan-05 21:50 
GeneralRe: .Net Hello World - Help! Pin
toxcct31-Jan-05 4:54
toxcct31-Jan-05 4:54 
GeneralRe: .Net Hello World - Help! Pin
Yulianto.31-Jan-05 13:09
Yulianto.31-Jan-05 13:09 
GeneralRe: .Net Hello World - Help! Pin
toxcct1-Feb-05 2:10
toxcct1-Feb-05 2:10 
GeneralRe: .Net Hello World - Help! Pin
Yulianto.1-Feb-05 14:23
Yulianto.1-Feb-05 14:23 
GeneralRe: .Net Hello World - Help! Pin
jhwurmbach1-Feb-05 1:39
jhwurmbach1-Feb-05 1:39 
GeneralRe: .Net Hello World - Help! Pin
Selvam R31-Jan-05 1:06
professionalSelvam R31-Jan-05 1:06 

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.