Click here to Skip to main content
15,923,689 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Registry Pin
krasy23-Nov-05 2:25
krasy23-Nov-05 2:25 
AnswerRe: Registry Pin
David Crow3-Nov-05 3:17
David Crow3-Nov-05 3:17 
GeneralRe: Registry Pin
krasy23-Nov-05 3:30
krasy23-Nov-05 3:30 
QuestionChanging an application's taskbar icon *on the fly* Pin
Taka Muraoka3-Nov-05 1:50
Taka Muraoka3-Nov-05 1:50 
AnswerRe: Changing an application's taskbar icon *on the fly* Pin
toxcct3-Nov-05 2:05
toxcct3-Nov-05 2:05 
GeneralRe: Changing an application's taskbar icon *on the fly* Pin
Taka Muraoka3-Nov-05 2:12
Taka Muraoka3-Nov-05 2:12 
GeneralRe: Changing an application's taskbar icon *on the fly* Pin
Trollslayer3-Nov-05 6:33
mentorTrollslayer3-Nov-05 6:33 
QuestionHow to select full row-window in ListView Pin
arkebuzy2-Nov-05 21:54
arkebuzy2-Nov-05 21:54 
Hi!
How to select not only all columns (LVS_EX_FULLROWSELECT), but also rest of window to border without fake column?

Example:
3 columns and 3 items (rows)
3 columns have widths - 100, 100, 100.
All ctrl window have width - 400
when I select, f.e., 2nd row - selection rectangle width is 300. How to select 400?

For drawing my control I'm using OwnerDraw
I tried to draw rectangle after last column with selection color, but nothing happends.
<br />
if((nColumn == m_columncount - 1) && bReallySelected)<br />
{<br />
CRect rc(rcSubItem.right, rcSubItem.top, rcWindow.right, rcSubItem.bottom);<br />
pDC->FillRect(rc, &CBrush(GetSysColor(COLOR_HIGHLIGHT)));<br />
DrawGrid(pDC, &rc);<br />
}<br />


where rcWindow = GetClientRect();
rcSubItem = GetSubItemRect(nItem, nColumn);
If try a InvalidateRect(rc) into code - I can see rectangle only when I resizing columns, after that rectangle clears by bg color.

DrawGrid draws a lines (without LVS_EX_GRIDLINES) and all continous lines in outside of rectangle, that bounds all items (column and rows) are not repainting (when resize column lines leave a trace)
But if set LVS_EX_GRIDLINES style (and don't draw lines) "system" lines drawing normally.

I think, maybe, lines and rest of selection draw in other routine?
Where system draws a lines?
QuestionProblem in using GDI+ in VC++ Pin
maharaja pandian2-Nov-05 19:58
maharaja pandian2-Nov-05 19:58 
AnswerRe: Problem in using GDI+ in VC++ Pin
PJ Arends2-Nov-05 21:32
professionalPJ Arends2-Nov-05 21:32 
GeneralRe: Problem in using GDI+ in VC++ Pin
maharaja pandian5-Nov-05 18:49
maharaja pandian5-Nov-05 18:49 
GeneralRe: Problem in using GDI+ in VC++ Pin
PJ Arends6-Nov-05 6:33
professionalPJ Arends6-Nov-05 6:33 
QuestionMySQl Connectivity problem with MFC... Pin
asifrogers2-Nov-05 19:33
asifrogers2-Nov-05 19:33 
AnswerRe: MySQl Connectivity problem with MFC... Pin
PJ Arends2-Nov-05 21:48
professionalPJ Arends2-Nov-05 21:48 
Questionhow to capture the screen as a Jpeg image Pin
plowstar2-Nov-05 19:14
plowstar2-Nov-05 19:14 
AnswerRe: how to capture the screen as a Jpeg image Pin
Prakash Nadar2-Nov-05 19:36
Prakash Nadar2-Nov-05 19:36 
QuestionHooking LogOff button on the alternate desktop Pin
Chintoo7232-Nov-05 18:18
Chintoo7232-Nov-05 18:18 
QuestionSetEvent? Pin
MCA2-Nov-05 17:32
MCA2-Nov-05 17:32 
AnswerRe: SetEvent? Pin
Renjith Ramachandran2-Nov-05 18:28
Renjith Ramachandran2-Nov-05 18:28 
AnswerRe: SetEvent? Pin
S. Senthil Kumar2-Nov-05 19:10
S. Senthil Kumar2-Nov-05 19:10 
AnswerRe: SetEvent? Pin
Bob Ciora3-Nov-05 1:32
Bob Ciora3-Nov-05 1:32 
GeneralRe: SetEvent? Pin
MCA3-Nov-05 3:06
MCA3-Nov-05 3:06 
QuestionFrame menu enabled! Pin
LiYS2-Nov-05 16:47
LiYS2-Nov-05 16:47 
QuestionShow WMF Pin
Nishad S2-Nov-05 16:47
Nishad S2-Nov-05 16:47 
QuestionHow to set a special tooltips of a slider control? Pin
CoolStarLee2-Nov-05 14:50
CoolStarLee2-Nov-05 14:50 

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.