Click here to Skip to main content
16,007,126 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: What's wrong with my code?? Pin
Christian Graus4-Oct-01 17:39
protectorChristian Graus4-Oct-01 17:39 
GeneralRe: What's wrong with my code?? Pin
LoveInSnowing4-Oct-01 18:30
LoveInSnowing4-Oct-01 18:30 
GeneralRe: What's wrong with my code?? Pin
Christian Graus4-Oct-01 18:39
protectorChristian Graus4-Oct-01 18:39 
GeneralFilling a Solid Rect Pin
Bret Faller (home)4-Oct-01 15:10
Bret Faller (home)4-Oct-01 15:10 
GeneralRe: Filling a Solid Rect Pin
Mike Nordell4-Oct-01 17:54
Mike Nordell4-Oct-01 17:54 
GeneralRe: Filling a Solid Rect Pin
Chris Losinger4-Oct-01 18:03
professionalChris Losinger4-Oct-01 18:03 
GeneralRe: Filling a Solid Rect Pin
Bret Faller (home)4-Oct-01 18:14
Bret Faller (home)4-Oct-01 18:14 
GeneralRe: Filling a Solid Rect Pin
Jon Hulatt4-Oct-01 22:58
Jon Hulatt4-Oct-01 22:58 
I might be barking up the wrong tree in the wrong forest here, but:

CRect rcHighlight = GetItemRect(lpDrawItemStruct->itemID, rc);
rcHighlight.left += 1;
rcHighlight.top += 1;
rcHighlight.right -= 1;
rcHighlight.bottom = rc.bottom - 1;


Looking at the prototype for the GetItemRect Function:
int GetItemRect( int nIndex, LPRECT lpRect ) const;


The return value is just a status code. lpRect is where the rect comes in. But, your code uses a CRect rcHighlight for a return value ?!?! and you adjust it's size a little, and then draw it.

Also, the fourth line of your code sets rcHighlight.bottom to rc.bottom, whereas the others just adjust the size of the incorrectly filled CRect object.

I don't know, maybe you just mistyped the code into the discussion forum?

Jon

Sorry to dissapoint you all with my lack of a witty or poignant signature.
GeneralRe: Filling a Solid Rect Pin
Bret Faller5-Oct-01 6:46
Bret Faller5-Oct-01 6:46 
GeneralRight click on taskbar button. Pin
Christian Graus4-Oct-01 13:44
protectorChristian Graus4-Oct-01 13:44 
GeneralRe: Right click on taskbar button. Pin
Mike Nordell4-Oct-01 14:07
Mike Nordell4-Oct-01 14:07 
GeneralRe: Right click on taskbar button. Pin
Christian Graus4-Oct-01 14:40
protectorChristian Graus4-Oct-01 14:40 
GeneralRe: Right click on taskbar button. Pin
Mike Nordell4-Oct-01 15:17
Mike Nordell4-Oct-01 15:17 
QuestionMaximized MDI Child window flicker? Pin
gh4-Oct-01 13:10
gh4-Oct-01 13:10 
GeneralCRichEditView Pin
4-Oct-01 12:45
suss4-Oct-01 12:45 
GeneralRe: CRichEditView Pin
Tomasz Sowinski4-Oct-01 12:53
Tomasz Sowinski4-Oct-01 12:53 
QuestionHelp button on tool window titlebar? Pin
4-Oct-01 12:18
suss4-Oct-01 12:18 
GeneralCatching special key-presses in an ActiveX within IE Pin
4-Oct-01 11:54
suss4-Oct-01 11:54 
GeneralOL2k Addin DLL Problem Pin
DVryce4-Oct-01 8:42
DVryce4-Oct-01 8:42 
GeneralRe: OL2k Addin DLL Problem Pin
Bret Faller4-Oct-01 9:10
Bret Faller4-Oct-01 9:10 
GeneralRe: OL2k Addin DLL Problem Pin
DVryce5-Oct-01 8:54
DVryce5-Oct-01 8:54 
GeneralPassing Arguments Pin
luke_ratliff4-Oct-01 8:06
luke_ratliff4-Oct-01 8:06 
GeneralRe: Passing Arguments Pin
Chris Losinger4-Oct-01 8:19
professionalChris Losinger4-Oct-01 8:19 
GeneralPulling info from other apps Pin
RobJones4-Oct-01 7:21
RobJones4-Oct-01 7:21 
GeneralRe: Pulling info from other apps Pin
#realJSOP4-Oct-01 8:21
professional#realJSOP4-Oct-01 8:21 

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.