Click here to Skip to main content
15,917,321 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
So finially I've found a solution for the problem, even though I do still don't know the answer to my original question.

extern "C" UINT WINAPI RealGetWindowClassA (HWND, char*, UINT);

void CTestTabCtrl::OnPaint() 
{CWnd* UpDownButton;
 char Test[256];

	UpDownButton = GetTopWindow();
	RealGetWindowClassA (UpDownButton->m_hWnd, Test, sizeof(Test)-1);
	ASSERT(!strcmp(Test, "msctls_updown32"));

	if (UpDownButton)
	{
		UpDownButton->EnableWindow(FALSE);
		UpDownButton->ShowWindow(SW_HIDE);
	}
	CTabCtrl::OnPaint();
}

So instead of overpainting the buttons I never display them.
Take care: UpDownButton is really a temporary window: It is dynamically created, when the number of tabs exceeds the number of displayable tabs. So if tabs are dynamically added and removed, retriving of the UpDownButton window pointer can not be done only once at initialization.

Regards
Leo

Edit: Typo in topic
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 
QuestionRe: How to get the result of Jar file into the Visual C++ application Pin
David Crow4-May-07 2:43
David Crow4-May-07 2:43 
AnswerRe: How to get the result of Jar file into the Visual C++ application Pin
Nikhil Trivedi4-May-07 20:35
Nikhil Trivedi4-May-07 20:35 
GeneralRe: How to get the result of Jar file into the Visual C++ application Pin
David Crow5-May-07 15:37
David Crow5-May-07 15:37 
Questionpointer Pin
ginjikun3-May-07 22:34
ginjikun3-May-07 22:34 
AnswerRe: pointer [modified] Pin
toxcct3-May-07 23:21
toxcct3-May-07 23:21 
GeneralRe: pointer Pin
Roger Stoltz4-May-07 0:56
Roger Stoltz4-May-07 0:56 
GeneralRe: pointer Pin
toxcct4-May-07 0:58
toxcct4-May-07 0:58 
GeneralRe: pointer Pin
Roger Stoltz4-May-07 1:02
Roger Stoltz4-May-07 1:02 
GeneralRe: pointer Pin
ginjikun4-May-07 3:40
ginjikun4-May-07 3:40 

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.