Click here to Skip to main content
15,909,896 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Find the right active window Pin
David Crow28-Jun-05 6:04
David Crow28-Jun-05 6:04 
GeneralReading Text off a tool Tip Pin
Abhishek Karnik28-Jun-05 4:35
Abhishek Karnik28-Jun-05 4:35 
GeneralDynamic control of a dialog box Pin
bugDanny28-Jun-05 4:26
bugDanny28-Jun-05 4:26 
GeneralRe: Dynamic control of a dialog box Pin
David Crow28-Jun-05 4:40
David Crow28-Jun-05 4:40 
GeneralVague Pin
Wes Aday28-Jun-05 4:41
professionalWes Aday28-Jun-05 4:41 
GeneralRe: Vague Pin
bugDanny28-Jun-05 4:52
bugDanny28-Jun-05 4:52 
GeneralRe: Vague Pin
Wes Aday28-Jun-05 4:55
professionalWes Aday28-Jun-05 4:55 
GeneralRe: Vague Pin
David Crow28-Jun-05 5:08
David Crow28-Jun-05 5:08 
Anon E. Mouse wrote:
if(checkbox.GetCheck())

Be specific. CButton::GetCheck() is not a boolean function. If you only want to set text when the state is checked, specifically check for it:

if (checkbox.GetCheck() == BST_CHECKED)
    textbox.SetWindowText("Some text");
else if (checkbox.GetCheck() == BST_UNCHECKED)
    textbox.SetWindowText(""); 
Otherwise, the button may later get changed to a three-state check box and be in an indeterminate state.


"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown


GeneralRe: Vague Pin
Wes Aday28-Jun-05 5:17
professionalWes Aday28-Jun-05 5:17 
GeneralRe: Vague Pin
bugDanny28-Jun-05 6:28
bugDanny28-Jun-05 6:28 
GeneralRe: Vague Pin
David Crow28-Jun-05 6:46
David Crow28-Jun-05 6:46 
GeneralRe: Vague Pin
bugDanny28-Jun-05 6:55
bugDanny28-Jun-05 6:55 
GeneralRe: Vague Pin
David Crow28-Jun-05 7:06
David Crow28-Jun-05 7:06 
GeneralRe: Vague Pin
bugDanny28-Jun-05 7:23
bugDanny28-Jun-05 7:23 
GeneralRe: Vague Pin
David Crow28-Jun-05 7:33
David Crow28-Jun-05 7:33 
GeneralRe: Vague Pin
bugDanny28-Jun-05 7:54
bugDanny28-Jun-05 7:54 
GeneralRe: Vague Pin
bugDanny28-Jun-05 8:38
bugDanny28-Jun-05 8:38 
GeneralCheck user activity ( mouse - keyb ) but not as spyware Pin
Pavel Sokolov28-Jun-05 3:54
Pavel Sokolov28-Jun-05 3:54 
GeneralRe: Check user activity ( mouse - keyb ) but not as spyware Pin
David Crow28-Jun-05 3:58
David Crow28-Jun-05 3:58 
GeneralRe: Check user activity ( mouse - keyb ) but not as spyware Pin
Pavel Sokolov28-Jun-05 4:03
Pavel Sokolov28-Jun-05 4:03 
GeneralRe: Check user activity ( mouse - keyb ) but not as spyware Pin
David Crow28-Jun-05 4:08
David Crow28-Jun-05 4:08 
GeneralRe: Check user activity ( mouse - keyb ) but not as spyware Pin
Pavel Sokolov28-Jun-05 4:20
Pavel Sokolov28-Jun-05 4:20 
GeneralRe: Check user activity ( mouse - keyb ) but not as spyware Pin
Blake Miller28-Jun-05 4:31
Blake Miller28-Jun-05 4:31 
GeneralRe: Check user activity ( mouse - keyb ) but not as spyware Pin
David Crow28-Jun-05 4:39
David Crow28-Jun-05 4:39 
GeneralCCriticalSection problem. Pls help! Pin
a_du28-Jun-05 3:46
a_du28-Jun-05 3:46 

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.