Click here to Skip to main content
16,010,918 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Visual SourceSafe Problem Pin
Not Active26-Feb-02 2:22
mentorNot Active26-Feb-02 2:22 
GeneralRe: Visual SourceSafe Problem Pin
NikoTanghe27-Feb-02 1:02
NikoTanghe27-Feb-02 1:02 
GeneralText adding to "Tip of the day " Pin
25-Feb-02 23:11
suss25-Feb-02 23:11 
GeneralRe: Text adding to "Tip of the day " Pin
Roger Allen26-Feb-02 1:04
Roger Allen26-Feb-02 1:04 
GeneralCFileDialog().. Pin
Neha25-Feb-02 23:04
Neha25-Feb-02 23:04 
GeneralRe: CFileDialog().. Pin
Fredrik Skog26-Feb-02 0:57
Fredrik Skog26-Feb-02 0:57 
GeneralFocus rect Pin
alex.barylski25-Feb-02 22:55
alex.barylski25-Feb-02 22:55 
GeneralRe: Focus rect Pin
Roger Allen26-Feb-02 1:09
Roger Allen26-Feb-02 1:09 
Don't bother drawing it yourself. Make use of the CRectTracker class to do it for you.
Create the object in the OnLButtonDown and Destory it in the OnLButtonUp. Change the values in the OnMouseMove.

The only problems I have had with CRectTracker is that you should use a new/delete on it, as the second time you use the same object you get screen corruption. Also, if your control completely redraws between OnMouseMoves's etc, then you have to re-create the CRectTracker object:


Roger Allen
Sonork 100.10016

If I'm not breathing, I'm either dead or holding my breath.
A fool jabbers, while a wise man listens. But is he so wise to listen to the fool?
GeneralRe: Focus rect Pin
alex.barylski26-Feb-02 6:48
alex.barylski26-Feb-02 6:48 
GeneralRe: Focus rect Pin
Josh Knox (disabled)26-Feb-02 4:42
Josh Knox (disabled)26-Feb-02 4:42 
GeneralXML TO PDF Pin
Özgür25-Feb-02 21:47
Özgür25-Feb-02 21:47 
GeneralRe: XML TO PDF Pin
Bill Wilson26-Feb-02 6:22
Bill Wilson26-Feb-02 6:22 
QuestionHow to Redraw the toolbar's gripper. Pin
datablader25-Feb-02 19:07
datablader25-Feb-02 19:07 
AnswerRe: How to Redraw the toolbar's gripper. Pin
alex.barylski25-Feb-02 22:26
alex.barylski25-Feb-02 22:26 
GeneralHIJRI GHAMARI ---> HIJRI SHAMSI Pin
Hadi Rezaee25-Feb-02 19:02
Hadi Rezaee25-Feb-02 19:02 
GeneralRe: HIJRI GHAMARI ---> HIJRI SHAMSI Pin
Nish Nishant25-Feb-02 20:12
sitebuilderNish Nishant25-Feb-02 20:12 
GeneralRe: HIJRI GHAMARI ---> HIJRI SHAMSI Pin
Hadi Rezaee26-Feb-02 0:47
Hadi Rezaee26-Feb-02 0:47 
GeneralRe: HIJRI GHAMARI ---> HIJRI SHAMSI Pin
Mazdak26-Feb-02 1:17
Mazdak26-Feb-02 1:17 
GeneralRe: HIJRI GHAMARI ---> HIJRI SHAMSI Pin
Hadi Rezaee26-Feb-02 18:09
Hadi Rezaee26-Feb-02 18:09 
Generalnaming conventions and standards Pin
Roman Nurik25-Feb-02 18:03
Roman Nurik25-Feb-02 18:03 
GeneralRe: naming conventions and standards Pin
Bill Wilson26-Feb-02 6:28
Bill Wilson26-Feb-02 6:28 
GeneralMFC list view control question.... Pin
David Z25-Feb-02 17:35
David Z25-Feb-02 17:35 
GeneralRe: MFC list view control question.... Pin
Nish Nishant25-Feb-02 18:15
sitebuilderNish Nishant25-Feb-02 18:15 
GeneralRe: MFC list view control question.... Pin
Ravi Bhavnani25-Feb-02 18:27
professionalRavi Bhavnani25-Feb-02 18:27 
GeneralRe: MFC list view control question.... Pin
David Z25-Feb-02 18:35
David Z25-Feb-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.