Click here to Skip to main content
15,899,754 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Urgent Convert from CString to hexadecimal Pin
imanos4-May-07 2:04
imanos4-May-07 2:04 
AnswerRe: Urgent Convert from CString to hexadecimal Pin
Roger Stoltz4-May-07 1:32
Roger Stoltz4-May-07 1:32 
GeneralRe: Urgent Convert from CString to hexadecimal Pin
imanos4-May-07 2:06
imanos4-May-07 2:06 
AnswerRe: Urgent Convert from CString to hexadecimal Pin
Paresh Chitte4-May-07 1:36
Paresh Chitte4-May-07 1:36 
GeneralRe: Urgent Convert from CString to hexadecimal Pin
imanos4-May-07 2:07
imanos4-May-07 2:07 
AnswerRe: Urgent Convert from CString to hexadecimal Pin
CPallini4-May-07 1:37
mveCPallini4-May-07 1:37 
GeneralRe: Urgent Convert from CString to hexadecimal Pin
imanos4-May-07 2:08
imanos4-May-07 2:08 
QuestionHow to keep a static control on top a tabcontrol in a Dialog? Pin
Chilli714-May-07 0:35
Chilli714-May-07 0:35 
First of all, I'm still using MFC4.2 with VC6. But the problems I ran into are probably the same since Win3.x Wink | ;) .
I have a CDialog, made with the dialog editor. Beside other controls I have a tab control in this dialog, which is attached to a CTabCtrl Object.
Now I want to mask out a part of this tab control. Easy, isn't it?
So I created dynamically a CStatic object, "Static1", with the background color corresponding to the dialog background color and sized and positioned the window to cover the area that I want to mask out. This static is a child of the TabControl.
So far so good.
But as soon as the tab control is repaintd my static control disappeared behind the tab control.
I made a second static control, "Static2", this time with the resource editor. This static is not a child of the TabControl.
Same behaviour.
I tried to adjust the z-order of "Static1". No effect.
I even called SetWindowPos with the wndTopMost pointer after each button down-, selection change- and WM_PAINT notifictaion, just for the case that the z-order is changed somehow somewhere. No success.

The behaviour is:
Upon startup or completely repaint of the dialog I see "Static1" and "Static2" ("Static2" is above "Static1").
After changing the Tabs (or hovering) I see the tab control. (Static 1 & 2 are behind the tab control).
If the statics are just covered by a window and drawn again afterwards, the result is indetermined, mostly all three controls are only drawn partitially in the overlapping area.

What can I do to nail my static on top of the tab control and that it gets repainted AFTER every repaint of the tab control?

Regards
Leo

AnswerRe: How to keep a static control on top a tabcontrol in a Dialog? Pin
Moak4-May-07 3:06
Moak4-May-07 3:06 
GeneralRe: How to keep a static control on top a tabcontrol in a Dialog? Pin
Chilli714-May-07 4:34
Chilli714-May-07 4:34 
GeneralRe: How to keep a static control on top a tabcontrol in a Dialog? Pin
Moak4-May-07 7:59
Moak4-May-07 7:59 
GeneralRe: How to keep a static control on top a tabcontrol in a Dialog? Pin
Chilli714-May-07 8:16
Chilli714-May-07 8:16 
GeneralRe: How to keep a static control on top a tabcontrol in a Dialog? Pin
Moak4-May-07 10:28
Moak4-May-07 10:28 
GeneralRe: How to keep a static control on top a tabcontrol in a Dialog? Pin
Chilli716-May-07 9:12
Chilli716-May-07 9:12 
GeneralRe: How to keep a static control on top a tabcontrol in a Dialog? Pin
Moak6-May-07 12:54
Moak6-May-07 12:54 
GeneralRe: How to keep a static control on top a tabcontrol in a Dialog? Pin
Chilli716-May-07 22:50
Chilli716-May-07 22:50 
AnswerNot showing is better than showing and overpainting... Pin
Chilli717-May-07 22:00
Chilli717-May-07 22:00 
QuestionCrystal report 10 ( Modify database location at runtime using CrystalRuntime.Application.10 ) Pin
AkiraOne4-May-07 0:32
AkiraOne4-May-07 0:32 
QuestionHow to clear office clipboard through vc++. Pin
Pankaj Bohra4-May-07 0:03
Pankaj Bohra4-May-07 0:03 
QuestionRe: How to clear office clipboard through vc++. Pin
David Crow4-May-07 2:37
David Crow4-May-07 2:37 
AnswerRe: How to clear office clipboard through vc++. Pin
Pankaj Bohra4-May-07 2:51
Pankaj Bohra4-May-07 2:51 
QuestionRe: How to clear office clipboard through vc++. Pin
David Crow4-May-07 2:54
David Crow4-May-07 2:54 
AnswerRe: How to clear office clipboard through vc++. Pin
Pankaj Bohra4-May-07 3:23
Pankaj Bohra4-May-07 3:23 
QuestionHow to get a pointer to a control embedded in html page in C++ Pin
Paresh Chitte4-May-07 0:01
Paresh Chitte4-May-07 0:01 
QuestionHow to get the result of Jar file into the Visual C++ application Pin
Nikhil Trivedi3-May-07 23:51
Nikhil Trivedi3-May-07 23:51 

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.