Click here to Skip to main content
15,900,258 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Embedding an application in an application Pin
ThatsAlok22-Jan-07 19:09
ThatsAlok22-Jan-07 19:09 
GeneralRe: Embedding an application in an application Pin
TPN22-Jan-07 19:15
TPN22-Jan-07 19:15 
QuestionFinding the Connection speed ........ Pin
junkMind22-Jan-07 17:11
junkMind22-Jan-07 17:11 
AnswerRe: Finding the Connection speed ........ Pin
ThatsAlok22-Jan-07 18:43
ThatsAlok22-Jan-07 18:43 
AnswerRe: Finding the Connection speed ........ Pin
ThatsAlok22-Jan-07 18:44
ThatsAlok22-Jan-07 18:44 
AnswerRe: Finding the Connection speed ........ Pin
Anilkumar K V23-Jan-07 1:03
Anilkumar K V23-Jan-07 1:03 
AnswerRe: Finding the Connection speed ........ Pin
rp_suman24-Jan-07 17:47
rp_suman24-Jan-07 17:47 
QuestionIs it possible to custom_draw the chevron button on the CRebar? Pin
benben22-Jan-07 16:38
benben22-Jan-07 16:38 
I want to customize the rebar's appearance(gripper, background...).I catch the NM_CUSTOMDRAW notification to do some processing, For example:
BOOL CMyReBar::OnNotify( WPARAM wParam, LPARAM lParam, LRESULT* pResult )
{
.........
NMHDR* pNMHDR = ( NMHDR* )lParam;
switch ( pNMHDR->code )
{
case NM_CUSTOMDRAW:
{
//DWORD dwStyle = GetDrawStyle();
//if (dwStyle>DRAW_ORIGINAL)
*pResult=DoCustomDrawXP(pNMHDR);
break;
}
...........
}
........
}
LRESULT CMyReBar::DoCustomDrawXP( NMHDR* pNMHDR)
{
LPNMCUSTOMDRAW lpNMCustomDraw = ( LPNMCUSTOMDRAW )pNMHDR;
LRESULT pResult = CDRF_DODEFAULT;
switch ( lpNMCustomDraw->dwDrawStage )
{
case CDDS_PREPAINT:
pResult = CDRF_NOTIFYITEMDRAW;
break;

case CDDS_ITEMPREPAINT:
//here I try to owner-draw the rebar control's appearance
DrawItem(lpNMCustomDraw);
pResult = CDRF_SKIPDEFAULT;
break;
}
return pResult;
}

But I find in this way I can only custom-draw the gripper. If there is a chevron button on the rebar, it is disappeared. How could I get the similar notification to draw the chevron button by myself?



Thanks
Benben

QuestionNonBlocking Client Socket - Connection Status Pin
ScotDolan22-Jan-07 10:57
ScotDolan22-Jan-07 10:57 
AnswerRe: NonBlocking Client Socket - Connection Status Pin
Mark Salsbery22-Jan-07 11:06
Mark Salsbery22-Jan-07 11:06 
GeneralRe: NonBlocking Client Socket - Connection Status Pin
ScotDolan22-Jan-07 11:21
ScotDolan22-Jan-07 11:21 
GeneralRe: NonBlocking Client Socket - Connection Status Pin
Mark Salsbery22-Jan-07 11:41
Mark Salsbery22-Jan-07 11:41 
GeneralRe: NonBlocking Client Socket - Connection Status Pin
ScotDolan22-Jan-07 12:04
ScotDolan22-Jan-07 12:04 
GeneralRe: NonBlocking Client Socket - Connection Status [modified] Pin
Mark Salsbery22-Jan-07 12:11
Mark Salsbery22-Jan-07 12:11 
GeneralRe: NonBlocking Client Socket - Connection Status Pin
Mark Salsbery22-Jan-07 12:15
Mark Salsbery22-Jan-07 12:15 
GeneralRe: NonBlocking Client Socket - Connection Status Pin
ScotDolan23-Jan-07 4:21
ScotDolan23-Jan-07 4:21 
GeneralRe: NonBlocking Client Socket - Connection Status Pin
Mark Salsbery23-Jan-07 8:16
Mark Salsbery23-Jan-07 8:16 
GeneralRe: NonBlocking Client Socket - Connection Status Pin
Mark Salsbery22-Jan-07 13:25
Mark Salsbery22-Jan-07 13:25 
GeneralRe: NonBlocking Client Socket - Connection Status Pin
Mike O'Neill22-Jan-07 13:20
Mike O'Neill22-Jan-07 13:20 
GeneralRe: NonBlocking Client Socket - Connection Status Pin
Mark Salsbery22-Jan-07 13:23
Mark Salsbery22-Jan-07 13:23 
GeneralRe: NonBlocking Client Socket - Connection Status Pin
Mike O'Neill22-Jan-07 15:12
Mike O'Neill22-Jan-07 15:12 
GeneralRe: NonBlocking Client Socket - Connection Status Pin
Mark Salsbery23-Jan-07 8:18
Mark Salsbery23-Jan-07 8:18 
QuestionUsing Adobe Acrobat to open a .PDF Pin
TheDelChop22-Jan-07 10:32
TheDelChop22-Jan-07 10:32 
AnswerRe: Using Adobe Acrobat to open a .PDF Pin
CPallini22-Jan-07 10:38
mveCPallini22-Jan-07 10:38 
AnswerRe: Using Adobe Acrobat to open a .PDF Pin
ThatsAlok22-Jan-07 18:49
ThatsAlok22-Jan-07 18:49 

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.