Click here to Skip to main content
15,399,959 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Adding color to my dialog Pin
Chris Losinger7-Sep-05 10:00
professionalChris Losinger7-Sep-05 10:00 
QuestionCalling All CListCtrl Experts Pin
Spoodles7-Sep-05 8:54
MemberSpoodles7-Sep-05 8:54 
AnswerRe: Calling All CListCtrl Experts Pin
Mircea Puiu7-Sep-05 20:41
MemberMircea Puiu7-Sep-05 20:41 
GeneralRe: Calling All CListCtrl Experts Pin
Spoodles8-Sep-05 3:11
MemberSpoodles8-Sep-05 3:11 
GeneralRe: Calling All CListCtrl Experts Pin
Mircea Puiu8-Sep-05 4:02
MemberMircea Puiu8-Sep-05 4:02 
QuestionUpdating CheckBoxes Pin
DanYELL7-Sep-05 5:08
MemberDanYELL7-Sep-05 5:08 
AnswerRe: Updating CheckBoxes Pin
Mircea Puiu7-Sep-05 5:18
MemberMircea Puiu7-Sep-05 5:18 
GeneralRe: Updating CheckBoxes Pin
DanYELL7-Sep-05 5:57
MemberDanYELL7-Sep-05 5:57 
One last question.

I put together this:

void SetCheckbox(int nID, bool state)
{
CButton *pCB = (CButton *)GetDlgItem(nID);
if (pCB)
pCB->SetCheck(state);

delete pCB;
}

and so I call:

SetCheckbox(IDC_CHECK20, 1);
SetCheckbox(IDC_CHECK21, 0);

But when I compile, I get this error:

error C2664: 'GetDlgItem' : cannot convert parameter 1 from 'int' to 'struct HWND__ *'

The function GetDlgItem takes 2-variables, int nID and HWND *phWnd. I tried using null for the 2nd variable (phWnd) but it
wont work. How can I clean this up to work?

Please, any response you can give me will be greatly appreciated.
I have alot of check boxes and need to condense.

Sincerely,
Danielle Brina (an overworked graduate student)
GeneralRe: Updating CheckBoxes Pin
bugDanny7-Sep-05 9:18
MemberbugDanny7-Sep-05 9:18 
GeneralRe: Updating CheckBoxes Pin
Mircea Puiu7-Sep-05 20:09
MemberMircea Puiu7-Sep-05 20:09 
AnswerRe: Updating CheckBoxes Pin
toxcct7-Sep-05 5:42
Membertoxcct7-Sep-05 5:42 
AnswerRe: Updating CheckBoxes Pin
David Crow7-Sep-05 6:25
MemberDavid Crow7-Sep-05 6:25 
AnswerRe: Updating CheckBoxes Pin
Jack Puppy7-Sep-05 15:37
MemberJack Puppy7-Sep-05 15:37 
QuestionDll and XP theme Pin
hari_rs7-Sep-05 4:02
Memberhari_rs7-Sep-05 4:02 
AnswerRe: Dll and XP theme Pin
Mircea Puiu7-Sep-05 5:11
MemberMircea Puiu7-Sep-05 5:11 
GeneralRe: Dll and XP theme Pin
pranavamhari7-Sep-05 5:39
Memberpranavamhari7-Sep-05 5:39 
AnswerRe: Dll and XP theme Pin
ThatsAlok7-Sep-05 18:43
MemberThatsAlok7-Sep-05 18:43 
QuestionHow to get the time taken by application Pin
Anonymous7-Sep-05 4:01
MemberAnonymous7-Sep-05 4:01 
AnswerRe: How to get the time taken by application Pin
David Crow7-Sep-05 4:15
MemberDavid Crow7-Sep-05 4:15 
AnswerRe: How to get the time taken by application Pin
Trollslayer7-Sep-05 4:43
mentorTrollslayer7-Sep-05 4:43 
GeneralRe: How to get the time taken by application Pin
David Crow7-Sep-05 6:41
MemberDavid Crow7-Sep-05 6:41 
GeneralRe: How to get the time taken by application Pin
Graham Bradshaw7-Sep-05 7:01
MemberGraham Bradshaw7-Sep-05 7:01 
GeneralRe: How to get the time taken by application Pin
David Crow7-Sep-05 7:32
MemberDavid Crow7-Sep-05 7:32 
QuestionRe: How to get the time taken by application Pin
ThatsAlok7-Sep-05 19:01
MemberThatsAlok7-Sep-05 19:01 
AnswerRe: How to get the time taken by application Pin
David Crow8-Sep-05 2:12
MemberDavid Crow8-Sep-05 2:12 

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.