Click here to Skip to main content
15,929,587 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to change Web Browser default printer Pin
CoolCoder_New2-Mar-09 19:53
CoolCoder_New2-Mar-09 19:53 
QuestionCMenu - how to draw the popup arrow yourself? Pin
YaronNir11-Sep-06 21:13
YaronNir11-Sep-06 21:13 
AnswerRe: CMenu - how to draw the popup arrow yourself? Pin
Sarath C11-Sep-06 21:38
Sarath C11-Sep-06 21:38 
GeneralRe: CMenu - how to draw the popup arrow yourself? Pin
YaronNir11-Sep-06 21:55
YaronNir11-Sep-06 21:55 
GeneralRe: CMenu - how to draw the popup arrow yourself? Pin
Waldermort12-Sep-06 0:29
Waldermort12-Sep-06 0:29 
GeneralRe: CMenu - how to draw the popup arrow yourself? Pin
YaronNir12-Sep-06 2:57
YaronNir12-Sep-06 2:57 
GeneralRe: CMenu - how to draw the popup arrow yourself? Pin
Steve S12-Sep-06 3:19
Steve S12-Sep-06 3:19 
AnswerRe: CMenu - how to draw the popup arrow yourself? Pin
Member 119860114-Sep-08 0:51
Member 119860114-Sep-08 0:51 
I used the following trick:
At the end of your DrawItem(), just before returning, set an empty clipping region. This will effectively prevent Windows from drawing over your arrow.
At the beginning, reset the clipping region to ensure you can draw back.
Code:

void CMyMenu::DrawItem(LPDRAWITEMSTRUCT lpDIS)
{
	// Reset clipping region
	pDC->SelectClipRgn(NULL);

	// Your drawing code goes here

	// Set clipping region. This will ensure Windows doesn't draw
	// the popup icon, which we are drawing ourselves.
	pDC->IntersectClipRect(0,0,0,0);
}

GeneralRe: CMenu - how to draw the popup arrow yourself? Pin
YaronNir14-Sep-08 0:56
YaronNir14-Sep-08 0:56 
QuestionUsing handles in DLL ... HELP Pin
pega11-Sep-06 20:55
pega11-Sep-06 20:55 
AnswerRe: Using handles in DLL ... HELP Pin
Michael Dunn11-Sep-06 21:32
sitebuilderMichael Dunn11-Sep-06 21:32 
GeneralRe: Using handles in DLL ... HELP Pin
pega12-Sep-06 3:39
pega12-Sep-06 3:39 
GeneralRe: Using handles in DLL ... HELP Pin
Michael Dunn12-Sep-06 19:48
sitebuilderMichael Dunn12-Sep-06 19:48 
QuestionTo identify the 'identity' of the calling process Pin
Gupta Suraj11-Sep-06 20:30
Gupta Suraj11-Sep-06 20:30 
AnswerRe: To identify the 'identity' of the calling process Pin
Hamid_RT11-Sep-06 20:46
Hamid_RT11-Sep-06 20:46 
GeneralRe: To identify the 'identity' of the calling process Pin
Gupta Suraj11-Sep-06 21:05
Gupta Suraj11-Sep-06 21:05 
GeneralRe: To identify the 'identity' of the calling process Pin
Hamid_RT11-Sep-06 21:24
Hamid_RT11-Sep-06 21:24 
GeneralRe: To identify the 'identity' of the calling process Pin
Hamid_RT13-Sep-06 8:09
Hamid_RT13-Sep-06 8:09 
AnswerRe: To identify the 'identity' of the calling process Pin
prasad_som11-Sep-06 20:50
prasad_som11-Sep-06 20:50 
GeneralRe: To identify the 'identity' of the calling process Pin
Gupta Suraj11-Sep-06 21:04
Gupta Suraj11-Sep-06 21:04 
GeneralRe: To identify the 'identity' of the calling process Pin
prasad_som11-Sep-06 21:12
prasad_som11-Sep-06 21:12 
GeneralRe: To identify the 'identity' of the calling process Pin
Gupta Suraj11-Sep-06 23:51
Gupta Suraj11-Sep-06 23:51 
GeneralRe: To identify the 'identity' of the calling process Pin
prasad_som12-Sep-06 0:52
prasad_som12-Sep-06 0:52 
AnswerRe: To identify the 'identity' of the calling process Pin
benjymous11-Sep-06 22:37
benjymous11-Sep-06 22:37 
GeneralRe: To identify the 'identity' of the calling process Pin
Gupta Suraj11-Sep-06 23:43
Gupta Suraj11-Sep-06 23:43 

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.