Click here to Skip to main content
15,887,421 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Visual C++ 7 and Windows'98 Pin
Tim Smith5-Dec-02 2:10
Tim Smith5-Dec-02 2:10 
GeneralCDatabase Open Pin
MFC is the Best4-Dec-02 21:42
MFC is the Best4-Dec-02 21:42 
GeneralRe: CDatabase Open Pin
Michael P Butler4-Dec-02 22:55
Michael P Butler4-Dec-02 22:55 
GeneralRe: CDatabase Open Pin
MFC is the Best4-Dec-02 23:41
MFC is the Best4-Dec-02 23:41 
GeneralPassing handle to other classes... Pin
p833704-Dec-02 21:23
p833704-Dec-02 21:23 
GeneralSendInput problem Pin
Cyberizen4-Dec-02 21:17
Cyberizen4-Dec-02 21:17 
GeneralRe: SendInput problem Pin
RicoH5-Dec-02 1:12
RicoH5-Dec-02 1:12 
GeneralSubclassing of floating Toolbar's parent Pin
CEx4-Dec-02 20:52
CEx4-Dec-02 20:52 
Objective : Want to Paint Toolbar's parent when toolbar is in floating state.

Idea : Subclass the Toolbars parent when its in floating state, and handle WM_PAINT/WM_NCPAINT message to do the required drawing .

Problem : I am not able to understand the concept of subclassing Frown | :( How to subclass ??

following is the code snippet which may help :
<br />
void CMyTB::OnWindowPosChanged(WINDOWPOS FAR* lpwndpos) <br />
{<br />
	CToolBar::OnWindowPosChanged(lpwndpos);<br />
	<br />
	if( IsFloating() )<br />
	{<br />
		if( m_pDockBar && !m_bDone )<br />
		{<br />
			CWnd* pParent = m_pDockBar->GetParent();<br />
			if( pParent->IsKindOf(RUNTIME_CLASS(CMiniFrameWnd)))<br />
			{<br />
                           // Write some Code here to Route pParent's Painting message, so that its painting can be done outside this window. How do I do this , is subclassing a solution ???<br />
				<br />
			}<br />
		}<br />
	}<br />
	else if( m_bDone ) {<br />
		m_bDone = FALSE;<br />
	}	<br />
}<br />


Help Gurus !!


Abhishek Narula
QuestionHow can it draw Menu? Pin
litth4-Dec-02 20:14
litth4-Dec-02 20:14 
QuestionHow to draw a rounded bitmap? Pin
phped4-Dec-02 20:11
phped4-Dec-02 20:11 
AnswerRe: How to draw a rounded bitmap? Pin
Christian Graus4-Dec-02 20:18
protectorChristian Graus4-Dec-02 20:18 
AnswerRe: How to draw a rounded bitmap? Pin
Shog94-Dec-02 20:27
sitebuilderShog94-Dec-02 20:27 
GeneralRe: How to draw a rounded bitmap? Pin
Paul M Watt5-Dec-02 5:42
mentorPaul M Watt5-Dec-02 5:42 
AnswerRe: How to draw a rounded bitmap? Pin
Paul M Watt5-Dec-02 5:45
mentorPaul M Watt5-Dec-02 5:45 
QuestionHow to translate this (masm32 in VC++) ? Pin
chen4-Dec-02 19:34
chen4-Dec-02 19:34 
GeneralReturn string from vc dll Pin
suresh_sathya4-Dec-02 19:06
suresh_sathya4-Dec-02 19:06 
GeneralRe: Return string from vc dll Pin
Rickard Andersson204-Dec-02 21:05
Rickard Andersson204-Dec-02 21:05 
GeneralRe: Return string from vc dll Pin
suresh_sathya4-Dec-02 21:44
suresh_sathya4-Dec-02 21:44 
GeneralRe: Return string from vc dll Pin
Johann Gerell4-Dec-02 22:47
Johann Gerell4-Dec-02 22:47 
QuestionHow can run my VC program in a computer without VC installed? Pin
Sstar4-Dec-02 18:59
Sstar4-Dec-02 18:59 
AnswerRe: How can run my VC program in a computer without VC installed? Pin
Christian Graus4-Dec-02 19:10
protectorChristian Graus4-Dec-02 19:10 
AnswerRe: How can run my VC program in a computer without VC installed? Pin
Michael Dunn4-Dec-02 19:12
sitebuilderMichael Dunn4-Dec-02 19:12 
AnswerRe: How can run my VC program in a computer without VC installed? Pin
Dov Sherman5-Dec-02 2:12
Dov Sherman5-Dec-02 2:12 
QuestionCan we search SQL (VC++) combine with Boolean? Pin
Anonymous4-Dec-02 18:27
Anonymous4-Dec-02 18:27 
AnswerRe: Can we search SQL (VC++) combine with Boolean? Pin
Nick Parker4-Dec-02 18:35
protectorNick Parker4-Dec-02 18:35 

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.