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

C / C++ / MFC

 
GeneralRe: Catch 'Print' button click event of print dialog from MFC application Pin
David Crow21-Apr-10 2:54
David Crow21-Apr-10 2:54 
GeneralRe: Catch 'Print' button click event of print dialog from MFC application Pin
Rahul B S21-Apr-10 19:36
Rahul B S21-Apr-10 19:36 
QuestionHow to get "Date-Time-Zone" Pin
Russell'19-Apr-10 23:15
Russell'19-Apr-10 23:15 
AnswerRe: How to get "Date-Time-Zone" Pin
Russell'19-Apr-10 23:54
Russell'19-Apr-10 23:54 
AnswerRe: How to get "Date-Time-Zone" Pin
Michel Godfroid20-Apr-10 0:20
Michel Godfroid20-Apr-10 0:20 
Questionimage data to Image convertion Pin
johnalek19-Apr-10 23:06
johnalek19-Apr-10 23:06 
QuestionRe: image data to Image convertion Pin
CPallini19-Apr-10 23:10
mveCPallini19-Apr-10 23:10 
Questionhow to ownerdraw the button borders in VC++6.0 [modified] Pin
Krauze19-Apr-10 22:45
Krauze19-Apr-10 22:45 
I've overriden the funx CMyButton::DrawItem(), and some lines in it are:
CDC* pDC = CDC::FromHandle( lpDrawItemStruct->hDC );
CRect rc = lpDrawItemStruct->rcItem;
CPen pen( PS_SOLID, 1, RGB(0,0,0) );
CPen *pOld = pDC->SelectObject( &pen );
pDC->LineTo( rc.right, rc.top );
pDC->LineTo( rc.right, rc.bottom );
pDC->LineTo( rc.left, rc.bottom );
pDC->LineTo( rc.left, rc.top );
pDC->SelectObject( pOld );

But the prob occurs that only the upper and left borders drawn can be seen while the lower and right can't. At first, I thought it was caused by the 3D effect of the button. But though I've added BS_FLAT, the prob still exists. In fact, I can't use the following to draw the borders:
pDC->Rectangle( &rc );

Cos I want the button background to be transparent so that the back image of the dialog isn't covered.
So anyone knows about this kinda prob and helps me out?
Really thx!
modified on Tuesday, April 20, 2010 4:51 AM

AnswerRe: how to ownerdraw the button borders in VC++6.0 Pin
stebich20-Apr-10 3:33
professionalstebich20-Apr-10 3:33 
GeneralRe: how to ownerdraw the button borders in VC++6.0 Pin
Krauze20-Apr-10 4:29
Krauze20-Apr-10 4:29 
Questionintercepting program display? Pin
Gibb3h19-Apr-10 22:35
Gibb3h19-Apr-10 22:35 
AnswerRe: intercepting program display? Pin
Michel Godfroid20-Apr-10 1:30
Michel Godfroid20-Apr-10 1:30 
GeneralRe: intercepting program display? Pin
Gibb3h20-Apr-10 1:36
Gibb3h20-Apr-10 1:36 
QuestionBrightness controller / OCX for notebook backlight Pin
AmericanoInPhils19-Apr-10 22:17
AmericanoInPhils19-Apr-10 22:17 
QuestionDVD burning problem using windows XP Service pack2 Pin
raj157619-Apr-10 21:33
raj157619-Apr-10 21:33 
AnswerRe: DVD burning problem using windows XP Service pack2 Pin
Michel Godfroid19-Apr-10 22:38
Michel Godfroid19-Apr-10 22:38 
GeneralRe: DVD burning problem using windows XP Service pack2 Pin
raj157619-Apr-10 23:17
raj157619-Apr-10 23:17 
GeneralRe: DVD burning problem using windows XP Service pack2 Pin
Michel Godfroid19-Apr-10 23:46
Michel Godfroid19-Apr-10 23:46 
GeneralRe: DVD burning problem using windows XP Service pack2 Pin
raj157620-Apr-10 0:41
raj157620-Apr-10 0:41 
GeneralRe: DVD burning problem using windows XP Service pack2 Pin
Michel Godfroid20-Apr-10 1:02
Michel Godfroid20-Apr-10 1:02 
AnswerRe: DVD burning problem using windows XP Service pack2 Pin
Moak20-Apr-10 0:53
Moak20-Apr-10 0:53 
QuestionListview header mouse click Pin
arun_pk19-Apr-10 20:08
arun_pk19-Apr-10 20:08 
AnswerRe: Listview header mouse click Pin
Stephen Hewitt19-Apr-10 20:58
Stephen Hewitt19-Apr-10 20:58 
AnswerRe: Listview header mouse click Pin
KarstenK19-Apr-10 21:00
mveKarstenK19-Apr-10 21:00 
QuestionMonitoring received packets on app which uses IOCP(hooking) Pin
l0odi19-Apr-10 18:51
l0odi19-Apr-10 18:51 

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.