Click here to Skip to main content
15,925,309 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
Generalpls help Pin
ThatsAlok14-Sep-04 1:15
ThatsAlok14-Sep-04 1:15 
GeneralRe: pls help Pin
User 21559721-Sep-04 2:12
User 21559721-Sep-04 2:12 
GeneralRe: pls help Pin
ThatsAlok21-Sep-04 18:46
ThatsAlok21-Sep-04 18:46 
GeneralRe: pls help Pin
User 21559722-Sep-04 1:42
User 21559722-Sep-04 1:42 
QuestionUse gifs in resources? Pin
LukeV13-Sep-04 15:48
LukeV13-Sep-04 15:48 
GeneralDraw subitem in SysListView32 Pin
qur13-Sep-04 8:12
qur13-Sep-04 8:12 
GeneralRe: Draw subitem in SysListView32 Pin
Michael Dunn13-Sep-04 8:50
sitebuilderMichael Dunn13-Sep-04 8:50 
GeneralRe: Draw subitem in SysListView32 Pin
qur13-Sep-04 11:44
qur13-Sep-04 11:44 
Thanks.... I have try this code it works fine... but When i tried to draw a rectangle around the subitem in POSTPAINT event it did not work.
Please see the code below

<br />
else if ( (CDDS_ITEMPOSTPAINT | CDDS_SUBITEM) == pLVCD->nmcd.dwDrawStage )<br />
{<br />
        if ( 0 == pLVCD->iSubItem )<br />
	{<br />
		RECT rc;<br />
		HPEN newPen, oldPen;<br />
		newPen = CreatePen(PS_SOLID,1, RGB(0,0,0));<br />
		oldPen = (HPEN)SelectObject(pLVCD->nmcd.hdc, newPen );<br />
		Rectangle(pLVCD->nmcd.hdc, pLVCD->nmcd.rc.left, pLVCD->nmcd.rc.top, pLVCD->nmcd.rc.right, pLVCD->nmcd.rc.bottom);<br />
		SelectObject(pLVCD->nmcd.hdc, oldPen );<br />
<br />
	}<br />
	else if ( 1 == pLVCD->iSubItem )<br />
	{<br />
<br />
		HPEN newPen, oldPen;<br />
		newPen = CreatePen(PS_SOLID,1, RGB(0,0,0));<br />
		oldPen = (HPEN)SelectObject(pLVCD->nmcd.hdc, newPen );<br />
		Rectangle(pLVCD->nmcd.hdc, pLVCD->nmcd.rc.left, pLVCD->nmcd.rc.top, pLVCD->nmcd.rc.right, pLVCD->nmcd.rc.bottom);<br />
		SelectObject(pLVCD->nmcd.hdc, oldPen );<br />
<br />
        }<br />
<br />
<br />
	*pResult = CDRF_SKIPDEFAULT;<br />
}<br />


Please tell me whats wrong with this code....
Secondly can i display combo on one of the column using the CustomDraw event.
GeneralRe: Draw subitem in SysListView32 Pin
Michael Dunn13-Sep-04 13:25
sitebuilderMichael Dunn13-Sep-04 13:25 
GeneralRe: Draw subitem in SysListView32 Pin
qur15-Sep-04 5:05
qur15-Sep-04 5:05 
QuestionHow to draw a disabled bitmap transparently Pin
Maxime Labelle13-Sep-04 5:17
Maxime Labelle13-Sep-04 5:17 
AnswerRe: How to draw a disabled bitmap transparently Pin
Jörgen Sigvardsson13-Sep-04 7:39
Jörgen Sigvardsson13-Sep-04 7:39 
GeneralRe: How to draw a disabled bitmap transparently Pin
Maxime Labelle14-Sep-04 0:56
Maxime Labelle14-Sep-04 0:56 
GeneralMinimizing Memory Pin
Matt Gerrans9-Sep-04 12:38
Matt Gerrans9-Sep-04 12:38 
GeneralRe: Minimizing Memory Pin
Michael Dunn9-Sep-04 13:18
sitebuilderMichael Dunn9-Sep-04 13:18 
GeneralRe: Minimizing Memory Pin
Jörgen Sigvardsson9-Sep-04 13:40
Jörgen Sigvardsson9-Sep-04 13:40 
GeneralRe: Minimizing Memory Pin
Michael Dunn9-Sep-04 15:38
sitebuilderMichael Dunn9-Sep-04 15:38 
GeneralRe: Minimizing Memory Pin
Jörgen Sigvardsson9-Sep-04 23:58
Jörgen Sigvardsson9-Sep-04 23:58 
GeneralRe: Minimizing Memory Pin
Michael Dunn10-Sep-04 7:09
sitebuilderMichael Dunn10-Sep-04 7:09 
GeneralRe: Minimizing Memory Pin
Matt Gerrans9-Sep-04 13:51
Matt Gerrans9-Sep-04 13:51 
GeneralHandling .Net Events in VC++ Pin
nalan8-Sep-04 21:08
nalan8-Sep-04 21:08 
GeneralRe: Handling .Net Events in VC++ Pin
andy_cn8-Sep-04 21:39
andy_cn8-Sep-04 21:39 
GeneralObject of MFC class in ATL DLL Pin
zahid_ash8-Sep-04 21:00
zahid_ash8-Sep-04 21:00 
General(?:) CAxDialogImpl does not receive WM_CREATE Pin
.Suchit7-Sep-04 0:16
.Suchit7-Sep-04 0:16 
GeneralRe: (?:) CAxDialogImpl does not receive WM_CREATE Pin
Jörgen Sigvardsson7-Sep-04 1:50
Jörgen Sigvardsson7-Sep-04 1: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.