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

C / C++ / MFC

 
AnswerRe: What's wrong with my code?? Pin
Christian Graus4-Oct-01 17:11
protectorChristian Graus4-Oct-01 17:11 
GeneralRe: Also Pin
Brendan Tregear4-Oct-01 17:16
Brendan Tregear4-Oct-01 17:16 
GeneralRe: Also Pin
Christian Graus4-Oct-01 17:18
protectorChristian Graus4-Oct-01 17:18 
GeneralRe: What's wrong with my code?? Pin
LoveInSnowing4-Oct-01 17:20
LoveInSnowing4-Oct-01 17:20 
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 
Good day,

Why would this not fill the complete rectangle specified by rcHighlight? this is for a Multiline(per item) ListCtrl and in the DrawItem function.

CRect rcHighlight = GetItemRect(lpDrawItemStruct->itemID, rc);
rcHighlight.left += 1;
rcHighlight.top += 1;
rcHighlight.right -= 1;
rcHighlight.bottom = rc.bottom - 1;
if (lpDrawItemStruct->itemState & ODS_SELECTED) {
pDC->FillSolidRect(rcHighlight, GetSysColor(COLOR_HIGHLIGHT));
pDC->SetTextColor(GetSysColor(COLOR_HIGHLIGHTTEXT)) ;
} else {
pDC->FillSolidRect(rcHighlight, GetSysColor(COLOR_WINDOW));
pDC->SetTextColor(GetSysColor(COLOR_WINDOWTEXT)) ;
}

I've verified that the rectangle is the correct rect and size but yet FillSolidRect only fills half of it. Any help is greatly appreciated.

Bret Faller,
Off-Duty programmer
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 
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 

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.