Click here to Skip to main content
15,902,276 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: I still don't get it... Pin
rajdawg2-Sep-03 15:50
rajdawg2-Sep-03 15:50 
GeneralRe: I still don't get it... Pin
vcplusplus2-Sep-03 14:27
vcplusplus2-Sep-03 14:27 
GeneralRe: I still don't get it... Pin
rajdawg2-Sep-03 15:53
rajdawg2-Sep-03 15:53 
GeneralNewbie question on MFC Controls Pin
Binayak2-Sep-03 13:33
Binayak2-Sep-03 13:33 
GeneralRe: Newbie question on MFC Controls Pin
Shog92-Sep-03 16:26
sitebuilderShog92-Sep-03 16:26 
GeneralInvisible Dialog Pin
ez_way2-Sep-03 12:57
ez_way2-Sep-03 12:57 
GeneralRe: Invisible Dialog Pin
valikac2-Sep-03 14:20
valikac2-Sep-03 14:20 
GeneralRe: Invisible Dialog Pin
ez_way2-Sep-03 14:46
ez_way2-Sep-03 14:46 
Good idea Kuphryn

So you think I can eliminate it from the taskbar by using SetWindowPosition? MSDN shows the following parms for SetWindowPos. SWP_HIDEWINDOW will certainly hide the window but it shows in the taskbar.

Best Wishes, MartySmile | :)

BOOL SetWindowPos(HWND hWnd,
HWND hWndInsertAfter,
int X,
int Y,
int cx,
int cy,
UINT uFlags
);
Parameters

hWnd
[in] Handle to the window.
hWndInsertAfter
[in] Handle to the window to precede the positioned window in the Z order. This parameter must be a window handle or one of the following values.
HWND_BOTTOM
Places the window at the bottom of the Z order. If the hWnd parameter identifies a topmost window, the window loses its topmost status and is placed at the bottom of all other windows.
HWND_NOTOPMOST
Places the window above all non-topmost windows (that is, behind all topmost windows). This flag has no effect if the window is already a non-topmost window.
HWND_TOP
Places the window at the top of the Z order.
HWND_TOPMOST
Places the window above all non-topmost windows. The window maintains its topmost position even when it is deactivated.
For more information about how this parameter is used, see the following Remarks section.
X
[in] Specifies the new position of the left side of the window, in client coordinates.
Y
[in] Specifies the new position of the top of the window, in client coordinates.
cx
[in] Specifies the new width of the window, in pixels.
cy
[in] Specifies the new height of the window, in pixels.
uFlags
[in] Specifies the window sizing and positioning flags. This parameter can be a combination of the following values.
SWP_ASYNCWINDOWPOS
If the calling thread and the thread that owns the window are attached to different input queues, the system posts the request to the thread that owns the window. This prevents the calling thread from blocking its execution while other threads process the request.
SWP_DEFERERASE
Prevents generation of the WM_SYNCPAINT message.
SWP_DRAWFRAME
Draws a frame (defined in the window's class description) around the window.
SWP_FRAMECHANGED
Applies new frame styles set using the SetWindowLong function. Sends a WM_NCCALCSIZE message to the window, even if the window's size is not being changed. If this flag is not specified, WM_NCCALCSIZE is sent only when the window's size is being changed.
SWP_HIDEWINDOW
Hides the window.
SWP_NOACTIVATE
Does not activate the window. If this flag is not set, the window is activated and moved to the top of either the topmost or non-topmost group (depending on the setting of the hWndInsertAfter parameter).
SWP_NOCOPYBITS
Discards the entire contents of the client area. If this flag is not specified, the valid contents of the client area are saved and copied back into the client area after the window is sized or repositioned.
SWP_NOMOVE
Retains the current position (ignores X and Y parameters).
SWP_NOOWNERZORDER
Does not change the owner window's position in the Z order.
SWP_NOREDRAW
Does not redraw changes. If this flag is set, no repainting of any kind occurs. This applies to the client area, the nonclient area (including the title bar and scroll bars), and any part of the parent window uncovered as a result of the window being moved. When this flag is set, the application must explicitly invalidate or redraw any parts of the window and parent window that need redrawing.
SWP_NOREPOSITION
Same as the SWP_NOOWNERZORDER flag.
SWP_NOSENDCHANGING
Prevents the window from receiving the WM_WINDOWPOSCHANGING message.
SWP_NOSIZE
Retains the current size (ignores the cx and cy parameters).
SWP_NOZORDER
Retains the current Z order (ignores the hWndInsertAfter parameter).
SWP_SHOWWINDOW
Displays the window.


Best Wishes,
Marty
GeneralRe: Invisible Dialog Pin
Joel Lucsy3-Sep-03 9:15
Joel Lucsy3-Sep-03 9:15 
GeneralI need as many opinions as possible Pin
DougW482-Sep-03 12:40
DougW482-Sep-03 12:40 
GeneralRe: I need as many opinions as possible Pin
Ted Ferenc2-Sep-03 12:51
Ted Ferenc2-Sep-03 12:51 
GeneralRe: I need as many opinions as possible Pin
valikac2-Sep-03 14:23
valikac2-Sep-03 14:23 
GeneralRe: I need as many opinions as possible Pin
Terry O'Nolley2-Sep-03 15:04
Terry O'Nolley2-Sep-03 15:04 
GeneralRe: I need as many opinions as possible Pin
DougW482-Sep-03 15:59
DougW482-Sep-03 15:59 
GeneralGetting the number of local drives on a system Pin
Dor2-Sep-03 12:32
Dor2-Sep-03 12:32 
GeneralRe: Getting the number of local drives on a system Pin
Michael Dunn2-Sep-03 12:38
sitebuilderMichael Dunn2-Sep-03 12:38 
GeneralOCX Custom Properties Pin
BarryPearlman2-Sep-03 11:38
BarryPearlman2-Sep-03 11:38 
GeneralVersion info in resources Pin
Navin2-Sep-03 10:17
Navin2-Sep-03 10:17 
GeneralRe: Version info in resources Pin
Navin2-Sep-03 10:59
Navin2-Sep-03 10:59 
GeneralRe: Version info in resources Pin
Steve S3-Sep-03 2:14
Steve S3-Sep-03 2:14 
GeneralTurning video signal on/off Pin
Andrew Allen2-Sep-03 10:05
Andrew Allen2-Sep-03 10:05 
GeneralMenu messaging Pin
David_Leikis2-Sep-03 8:51
David_Leikis2-Sep-03 8:51 
GeneralRe: Menu messaging Pin
Dor2-Sep-03 12:30
Dor2-Sep-03 12:30 
QuestionHow to resize the MDI child window at startup Pin
mr20032-Sep-03 8:46
mr20032-Sep-03 8:46 
AnswerRe: How to resize the MDI child window at startup Pin
John R. Shaw3-Sep-03 7:12
John R. Shaw3-Sep-03 7:12 

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.