Click here to Skip to main content
15,881,715 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
Spoodles7-Sep-05 8:54 
AnswerRe: Calling All CListCtrl Experts Pin
Mircea Puiu7-Sep-05 20:41
Mircea Puiu7-Sep-05 20:41 
GeneralRe: Calling All CListCtrl Experts Pin
Spoodles8-Sep-05 3:11
Spoodles8-Sep-05 3:11 
GeneralRe: Calling All CListCtrl Experts Pin
Mircea Puiu8-Sep-05 4:02
Mircea Puiu8-Sep-05 4:02 
QuestionUpdating CheckBoxes Pin
DanYELL7-Sep-05 5:08
DanYELL7-Sep-05 5:08 
AnswerRe: Updating CheckBoxes Pin
Mircea Puiu7-Sep-05 5:18
Mircea Puiu7-Sep-05 5:18 
GeneralRe: Updating CheckBoxes Pin
DanYELL7-Sep-05 5:57
DanYELL7-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
bugDanny7-Sep-05 9:18 
GeneralRe: Updating CheckBoxes Pin
Mircea Puiu7-Sep-05 20:09
Mircea Puiu7-Sep-05 20:09 
AnswerRe: Updating CheckBoxes Pin
toxcct7-Sep-05 5:42
toxcct7-Sep-05 5:42 
AnswerRe: Updating CheckBoxes Pin
David Crow7-Sep-05 6:25
David Crow7-Sep-05 6:25 
AnswerRe: Updating CheckBoxes Pin
Jack Puppy7-Sep-05 15:37
Jack Puppy7-Sep-05 15:37 
QuestionDll and XP theme Pin
hari_rs7-Sep-05 4:02
hari_rs7-Sep-05 4:02 
AnswerRe: Dll and XP theme Pin
Mircea Puiu7-Sep-05 5:11
Mircea Puiu7-Sep-05 5:11 
GeneralRe: Dll and XP theme Pin
pranavamhari7-Sep-05 5:39
pranavamhari7-Sep-05 5:39 
AnswerRe: Dll and XP theme Pin
ThatsAlok7-Sep-05 18:43
ThatsAlok7-Sep-05 18:43 
QuestionHow to get the time taken by application Pin
Anonymous7-Sep-05 4:01
Anonymous7-Sep-05 4:01 
AnswerRe: How to get the time taken by application Pin
David Crow7-Sep-05 4:15
David 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
David Crow7-Sep-05 6:41 
GeneralRe: How to get the time taken by application Pin
Graham Bradshaw7-Sep-05 7:01
Graham Bradshaw7-Sep-05 7:01 
GeneralRe: How to get the time taken by application Pin
David Crow7-Sep-05 7:32
David Crow7-Sep-05 7:32 
QuestionRe: How to get the time taken by application Pin
ThatsAlok7-Sep-05 19:01
ThatsAlok7-Sep-05 19:01 
AnswerRe: How to get the time taken by application Pin
David Crow8-Sep-05 2:12
David 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.