Click here to Skip to main content
15,915,840 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Please Help!! Pin
Christian Graus4-Nov-02 15:17
protectorChristian Graus4-Nov-02 15:17 
GeneralRe: Please Help!! Pin
Chris Losinger4-Nov-02 17:29
professionalChris Losinger4-Nov-02 17:29 
GeneralRe: Please Help!! Pin
Autunmsky4-Nov-02 12:57
Autunmsky4-Nov-02 12:57 
GeneralRe: Please Help!! Pin
Christian Graus4-Nov-02 13:12
protectorChristian Graus4-Nov-02 13:12 
GeneralRe: Please Help!! Pin
Autunmsky4-Nov-02 14:29
Autunmsky4-Nov-02 14:29 
GeneralHelp with Dialog Toolbars Pin
Steven M Hunt4-Nov-02 10:33
Steven M Hunt4-Nov-02 10:33 
GeneralRe: Help with Dialog Toolbars Pin
dabs4-Nov-02 10:50
dabs4-Nov-02 10:50 
GeneralCMenu question. Pin
Anonymous4-Nov-02 10:11
Anonymous4-Nov-02 10:11 
Is there any reason this shouldn't work on 9x machines? It displays fine on my 2k machine but not on 98..

void CStatusBarEx::OnContextMenu(CWnd* pWnd, CPoint point) 
{
	if( point.x == -1 && point.y == -1 )
	{
		CRect	rect;		
		GetClientRect(rect);
		ClientToScreen(rect);	
		point = rect.TopLeft();	
		point.Offset(5, 5);
	}

	CMenu	menu;
	menu.LoadMenu(IDR_STATUS_BAR);

	CMenu* pPopup = menu.GetSubMenu(0);	

	CWnd* pWndPopupOwner = this;
	while(pWndPopupOwner->GetStyle() & WS_CHILD)
		pWndPopupOwner = pWndPopupOwner->GetParent();

	pPopup->TrackPopupMenu(TPM_LEFTALIGN | TPM_RIGHTBUTTON, 
		point.x, point.y, pWndPopupOwner);
}

QuestionHow do i at runtime, draw a bitmap in my application? Pin
Anonymous4-Nov-02 9:45
Anonymous4-Nov-02 9:45 
AnswerRe: How do i at runtime, draw a bitmap in my application? Pin
Christian Graus4-Nov-02 9:56
protectorChristian Graus4-Nov-02 9:56 
Generalyes Pin
Anonymous4-Nov-02 10:31
Anonymous4-Nov-02 10:31 
GeneralRe: yes Pin
Christian Graus4-Nov-02 11:06
protectorChristian Graus4-Nov-02 11:06 
QuestionDo we really need "UINT mask"? Pin
MightyThor4-Nov-02 9:27
MightyThor4-Nov-02 9:27 
AnswerRe: Do we really need "UINT mask"? Pin
Christian Graus4-Nov-02 9:55
protectorChristian Graus4-Nov-02 9:55 
GeneralRe: Do we really need "UINT mask"? Pin
MightyThor4-Nov-02 9:59
MightyThor4-Nov-02 9:59 
GeneralRe: Do we really need "UINT mask"? Pin
Christian Graus4-Nov-02 10:34
protectorChristian Graus4-Nov-02 10:34 
GeneralRe: Do we really need "UINT mask"? Pin
MightyThor4-Nov-02 10:49
MightyThor4-Nov-02 10:49 
AnswerRe: Do we really need "UINT mask"? Pin
Daniel Turini4-Nov-02 9:55
Daniel Turini4-Nov-02 9:55 
GeneralRe: Do we really need "UINT mask"? Pin
MightyThor4-Nov-02 10:26
MightyThor4-Nov-02 10:26 
Generalscroll using middle button Pin
orcun colak4-Nov-02 8:54
orcun colak4-Nov-02 8:54 
GeneralRe: scroll using middle button Pin
lucy4-Nov-02 9:39
lucy4-Nov-02 9:39 
Questionhow to make one function dual duty? Pin
ns4-Nov-02 8:04
ns4-Nov-02 8:04 
AnswerRe: how to make one function dual duty? Pin
Anonymous4-Nov-02 8:06
Anonymous4-Nov-02 8:06 
GeneralRe: how to make one function dual duty? Pin
ns4-Nov-02 8:14
ns4-Nov-02 8:14 
GeneralRe: how to make one function dual duty? Pin
ns4-Nov-02 8:26
ns4-Nov-02 8:26 

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.