Click here to Skip to main content
15,898,746 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Serialize CListCtrl Pin
Ravi Bhavnani7-Jul-06 8:46
professionalRavi Bhavnani7-Jul-06 8:46 
QuestionFormating of Date in class CTime? Pin
G Haranadh7-Jul-06 8:38
G Haranadh7-Jul-06 8:38 
AnswerRe: Formating of Date in class CTime? Pin
Ravi Bhavnani7-Jul-06 8:45
professionalRavi Bhavnani7-Jul-06 8:45 
AnswerRe: Formating of Date in class CTime? Pin
ThatsAlok9-Jul-06 20:58
ThatsAlok9-Jul-06 20:58 
QuestionControlling the volume' sound in DirectX Pin
Alex Cutovoi7-Jul-06 6:41
Alex Cutovoi7-Jul-06 6:41 
AnswerRe: Controlling the volume' sound in DirectX Pin
Justin Tay7-Jul-06 6:49
Justin Tay7-Jul-06 6:49 
GeneralRe: Controlling the volume' sound in DirectX Pin
Alex Cutovoi7-Jul-06 8:23
Alex Cutovoi7-Jul-06 8:23 
Questionhelp coloring individual listview item instead of all listview item in visual c++ [modified] Pin
method0077-Jul-06 6:16
method0077-Jul-06 6:16 
Hi all. i am using this code to change color of listview item.
But unfortunetly it goes and changes color of all item instead
of only changing the color selected listview item. Could an expert
look at this and show me how i can only change color of selected
listview item instead of coloring all items in listview.Thanks



void CColor1Dlg::OnButton1() <br />
<br />
{<br />
<br />
HWND hPalWnd = ::FindWindow("my window class", NULL);<br />
<br />
        HWND spilterwindow = FindWindowEx(hPalWnd, 0, "WTL_SplitterWindow", 0);<br />
<br />
        spilterwindow = FindWindowEx(spilterwindow, 0, "WTL_SplitterWindow", 0);<br />
<br />
        HWND ATL = FindWindowEx(spilterwindow, 0, "WTL_SplitterWindow", 0);<br />
<br />
        HWND ATLWIN = FindWindowEx(ATL, 0, "atl:0053c8d0", 0);<br />
<br />
        HWND Dialog = FindWindowEx(ATLWIN, 0, "SysListView32", 0);<br />
<br />
        HWND Rich = FindWindowEx(Dialog, 0, "SysHeader32", 0);<br />
<br />
 <br />
<br />
            CButton *pButton1 = (CButton*)GetDlgItem(IDC_BUTTON1);<br />
<br />
            COLORREF GetBkColor(IDC_BUTTON1);<br />
<br />
            //COLORREF color = m_color.GetColor();<br />
<br />
COLORREF color = 33023;<br />
<br />
            TRACE("Color of the selected font = %8x\n", color);<br />
<br />
            //CButton *pButton = (CButton*)GetDlgItem(IDC_BUTTON2);<br />
<br />
            //pButton->SetWindowText("Shoot");<br />
<br />
        ::SendMessage(Dialog, LVM_SETTEXTCOLOR, 0, color);<br />
<br />
 <br />
<br />
}



-- modified at 12:16 Friday 7th July, 2006
AnswerRe: help coloring individual listview item instead of all listview item in visual c++ Pin
Justin Tay7-Jul-06 6:20
Justin Tay7-Jul-06 6:20 
GeneralRe: help coloring individual listview item instead of all listview item in visual c++ Pin
method0077-Jul-06 6:24
method0077-Jul-06 6:24 
GeneralRe: help coloring individual listview item instead of all listview item in visual c++ Pin
PJ Arends7-Jul-06 6:29
professionalPJ Arends7-Jul-06 6:29 
GeneralRe: help coloring individual listview item instead of all listview item in visual c++ Pin
Justin Tay7-Jul-06 6:34
Justin Tay7-Jul-06 6:34 
QuestionComboBox DropDownList? Pin
george ivanov7-Jul-06 5:54
george ivanov7-Jul-06 5:54 
AnswerRe: ComboBox DropDownList? Pin
PJ Arends7-Jul-06 5:58
professionalPJ Arends7-Jul-06 5:58 
QuestionA (simple) limited user question Pin
Dave Kerr7-Jul-06 5:52
Dave Kerr7-Jul-06 5:52 
AnswerRe: A (simple) limited user question Pin
David Crow7-Jul-06 6:54
David Crow7-Jul-06 6:54 
QuestionProblem with NTGraph Pin
Semion_N7-Jul-06 5:48
Semion_N7-Jul-06 5:48 
AnswerRe: Problem with NTGraph Pin
Justin Tay7-Jul-06 7:54
Justin Tay7-Jul-06 7:54 
GeneralRe: Problem with NTGraph Pin
Semion_N7-Jul-06 9:21
Semion_N7-Jul-06 9:21 
AnswerRe: Problem with NTGraph Pin
Semion_N8-Jul-06 3:49
Semion_N8-Jul-06 3:49 
GeneralRe: Problem with NTGraph Pin
Justin Tay8-Jul-06 4:59
Justin Tay8-Jul-06 4:59 
GeneralRe: Problem with NTGraph Pin
Semion_N8-Jul-06 5:16
Semion_N8-Jul-06 5:16 
GeneralRe: Problem with NTGraph Pin
Justin Tay8-Jul-06 5:33
Justin Tay8-Jul-06 5:33 
GeneralRe: Problem with NTGraph Pin
Semion_N8-Jul-06 5:42
Semion_N8-Jul-06 5:42 
GeneralRe: Problem with NTGraph Pin
Justin Tay8-Jul-06 6:07
Justin Tay8-Jul-06 6:07 

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.