Click here to Skip to main content
15,921,371 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralWM_MOUSEWHEEL in child window of ActiveX control Pin
Paul Selormey24-Sep-01 17:16
Paul Selormey24-Sep-01 17:16 
GeneralCreateWindow problem in Win32 Pin
Christian Graus24-Sep-01 15:01
protectorChristian Graus24-Sep-01 15:01 
GeneralRe: CreateWindow problem in Win32 Pin
Paul Selormey24-Sep-01 17:19
Paul Selormey24-Sep-01 17:19 
GeneralRe: CreateWindow problem in Win32 Pin
Christian Graus24-Sep-01 17:36
protectorChristian Graus24-Sep-01 17:36 
GeneralRe: CreateWindow problem in Win32 Pin
Paul Selormey24-Sep-01 18:11
Paul Selormey24-Sep-01 18:11 
GeneralRe: CreateWindow problem in Win32 Pin
Christian Graus24-Sep-01 19:34
protectorChristian Graus24-Sep-01 19:34 
GeneralRe: CreateWindow problem in Win32 Pin
Paul Selormey24-Sep-01 20:01
Paul Selormey24-Sep-01 20:01 
GeneralRe: CreateWindow problem in Win32 Pin
Mike Burston24-Sep-01 21:53
Mike Burston24-Sep-01 21:53 
Christian,

Have had to something very similar, and so I looked up a few details that I'd forgotten. The basic info is from the MSJ November 97 "Q&A:Win32" column by Jeff Richter. I think this should do what you want, although I remember having to 'fiddle' a little to get exactly the effect I was after.

>>

Q I'm writing a wizard-like application that leads the user through some setup tasks. Since I spawn this application from my main application, I don't want the system's taskbar to show a button for this window. I've performed many experiments and I can't seem to figure out what rules the taskbar uses to determine whether it should show a button for a window. What are the rules?

A The rules the taskbar uses to decide whether a button should be shown for a window are really quite simple, but are not well documented. When you create a window, the taskbar examines the window's extended style to see if either the WS_EX_APPWINDOW (defined as 0x00040000) or WS_EX_TOOLWINDOW (defined as 0x00000080) style is turned on. If WS_EX_APPWINDOW is turned on, the taskbar shows a button for the window, and if WS_EX_ TOOLWINDOW is turned on, the taskbar does not show a button for the window. You should never create a window that has both of these extended styles.
You can create a window that doesn't have either of these styles. If a window has neither style, the taskbar decides to create a button if the window is unowned and does not create a button if the window is owned.
One final note: before making any of the above tests, the taskbar first checks to see if a window has the standard WS_VISIBLE window style turned on. If this style bit is off, the window is hidden; the taskbar never shows a button for a hidden window. Only if the WS_VISIBLE style bit is on will the taskbar check the WS_EX_APPWINDOW, WS_ EX_TOOLWINDOW, and window ownership information.


Reg : "Well, what Jesus blatantly fails to appreciate is that it's the meek who are the problem."

GeneralRe: CreateWindow problem in Win32 Pin
Christian Graus24-Sep-01 22:07
protectorChristian Graus24-Sep-01 22:07 
GeneralRe: CreateWindow problem in Win32 Pin
Andrew Peace25-Sep-01 11:44
Andrew Peace25-Sep-01 11:44 
GeneralRe: CreateWindow problem in Win32 Pin
Christian Graus25-Sep-01 11:54
protectorChristian Graus25-Sep-01 11:54 
GeneralSHAutoComplete Pin
PJ Arends24-Sep-01 14:56
professionalPJ Arends24-Sep-01 14:56 
GeneralRe: SHAutoComplete Pin
PJ Arends24-Sep-01 16:54
professionalPJ Arends24-Sep-01 16:54 
GeneralError Message Pin
Peter Liddle24-Sep-01 11:21
Peter Liddle24-Sep-01 11:21 
GeneralRichEdit, ActiveX, Extraterrestrial behavior Pin
24-Sep-01 10:40
suss24-Sep-01 10:40 
General'Document Summary Info' Pin
Lilian Chan-Grant24-Sep-01 10:27
Lilian Chan-Grant24-Sep-01 10:27 
GeneralRe: 'Document Summary Info' Pin
Michael Dunn24-Sep-01 15:10
sitebuilderMichael Dunn24-Sep-01 15:10 
GeneralSimple DLL, Simple DLL, Simple DLL , P L E A S E !!! Pin
24-Sep-01 9:52
suss24-Sep-01 9:52 
GeneralRe: Simple DLL, Simple DLL, Simple DLL , P L E A S E !!! Pin
Chris Losinger24-Sep-01 10:07
professionalChris Losinger24-Sep-01 10:07 
GeneralRe: Simple DLL, Simple DLL, Simple DLL , P L E A S E !!! Pin
24-Sep-01 11:43
suss24-Sep-01 11:43 
GeneralRe: Simple DLL, Simple DLL, Simple DLL , P L E A S E !!! Pin
Michael P Butler25-Sep-01 2:37
Michael P Butler25-Sep-01 2:37 
GeneralHide Menu Pin
24-Sep-01 9:19
suss24-Sep-01 9:19 
GeneralRe: Hide Menu Pin
Oscar Vazquez24-Sep-01 9:49
Oscar Vazquez24-Sep-01 9:49 
GeneralHelp Using CMemDC and its derivatives... Pin
TSquared24-Sep-01 7:36
TSquared24-Sep-01 7:36 
GeneralRe: Help Using CMemDC and its derivatives... Pin
Tim Deveaux24-Sep-01 9:43
Tim Deveaux24-Sep-01 9:43 

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.