Click here to Skip to main content
15,895,011 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to make MDI GUI like this? :doh: Pin
David Crow18-Oct-04 9:15
David Crow18-Oct-04 9:15 
GeneralRe: How to make MDI GUI like this? :doh: Pin
yesjacky18-Oct-04 9:27
yesjacky18-Oct-04 9:27 
Generalserial port comm. Pin
Anonymous18-Oct-04 8:29
Anonymous18-Oct-04 8:29 
GeneralChanging dynamically tooltip text on toolbar Pin
Exsilius18-Oct-04 4:21
Exsilius18-Oct-04 4:21 
GeneralRe: Changing dynamically tooltip text on toolbar Pin
Exsilius18-Oct-04 4:55
Exsilius18-Oct-04 4:55 
GeneralString to Command Pin
dSolariuM18-Oct-04 3:53
dSolariuM18-Oct-04 3:53 
GeneralRe: String to Command Pin
P-Rex18-Oct-04 4:28
P-Rex18-Oct-04 4:28 
GeneralRe: String to Command Pin
Antony M Kancidrowski18-Oct-04 5:57
Antony M Kancidrowski18-Oct-04 5:57 
The problem you have is that GetDlgItem does not take a string as a parameter.

When you write
GetDlgItem(IDC_BUTTON1)->SetWindowtext("");

The compiler replaces the define IDC_BUTTON1 with its numeric value (see resource.h)

What would work is
int myID;
myID = IDC_BUTTON1;
GetDlgItem(myID)->SetWindowText("");


Unless I have misunderstood your problem.

Ant.

I'm hard, yet soft.
I'm coloured, yet clear.
I'm fruity and sweet.
I'm jelly, what am I? Muse on it further, I shall return!
- David Williams (Little Britain)

Generalcreating a package Pin
nnvidya18-Oct-04 3:23
nnvidya18-Oct-04 3:23 
GeneralRe: creating a package Pin
shiraztk18-Oct-04 19:13
shiraztk18-Oct-04 19:13 
GeneralRe: creating a package Pin
nnvidya18-Oct-04 19:43
nnvidya18-Oct-04 19:43 
GeneralSetWindowText Pin
jj92118-Oct-04 3:01
jj92118-Oct-04 3:01 
GeneralRe: SetWindowText Pin
David Crow18-Oct-04 3:02
David Crow18-Oct-04 3:02 
GeneralRe: SetWindowText Pin
jj92118-Oct-04 5:37
jj92118-Oct-04 5:37 
GeneralRe: SetWindowText Pin
David Crow18-Oct-04 5:46
David Crow18-Oct-04 5:46 
GeneralRe: SetWindowText Pin
Vikram Kashyap19-Oct-04 2:49
Vikram Kashyap19-Oct-04 2:49 
GeneralRe: SetWindowText Pin
Vikram Kashyap19-Oct-04 2:50
Vikram Kashyap19-Oct-04 2:50 
Generalstory of winzip Pin
includeh1018-Oct-04 2:04
includeh1018-Oct-04 2:04 
GeneralRe: story of winzip Pin
22491718-Oct-04 2:21
22491718-Oct-04 2:21 
GeneralRe: story of winzip Pin
includeh1018-Oct-04 3:29
includeh1018-Oct-04 3:29 
GeneralRe: story of winzip Pin
includeh1018-Oct-04 3:56
includeh1018-Oct-04 3:56 
Question++ operator atomic? Pin
PeterHarrie18-Oct-04 1:53
PeterHarrie18-Oct-04 1:53 
AnswerRe: ++ operator atomic? Pin
Hans Ruck18-Oct-04 2:05
Hans Ruck18-Oct-04 2:05 
GeneralRe: ++ operator atomic? Pin
Antony M Kancidrowski18-Oct-04 2:07
Antony M Kancidrowski18-Oct-04 2:07 
AnswerRe: ++ operator atomic? Pin
Antony M Kancidrowski18-Oct-04 2:06
Antony M Kancidrowski18-Oct-04 2:06 

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.