Click here to Skip to main content
15,926,596 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Sending images over a tcp socket Pin
Trollslayer2-Jun-05 6:31
mentorTrollslayer2-Jun-05 6:31 
GeneralRe: Sending images over a tcp socket Pin
ThatsAlok2-Jun-05 19:11
ThatsAlok2-Jun-05 19:11 
GeneralC++ Redraw the entire window Pin
elapid2-Jun-05 6:13
elapid2-Jun-05 6:13 
GeneralRe: C++ Redraw the entire window Pin
David Crow2-Jun-05 7:10
David Crow2-Jun-05 7:10 
GeneralRe: C++ Redraw the entire window Pin
elapid2-Jun-05 7:54
elapid2-Jun-05 7:54 
GeneralRe: C++ Redraw the entire window Pin
David Crow2-Jun-05 7:59
David Crow2-Jun-05 7:59 
GeneralPropegating System Varaiables Pin
Guinness4Strength2-Jun-05 5:03
Guinness4Strength2-Jun-05 5:03 
GeneralRe: Propegating System Varaiables Pin
David Crow2-Jun-05 5:51
David Crow2-Jun-05 5:51 
Guinness4Strength wrote:
for(int x = 0; x < m_VarList.GetItemCount(); x++)
{
if (IsDlgButtonChecked(IDC_USERRADIO))
SetEnvironmentalVariable(m_VarList.GetItemText(x, 0), m_VarList.GetItemText(x, 1), FALSE);
else if (IsDlgButtonChecked(IDC_SYSTEMRADIO))
SetEnvironmentalVariable(m_VarList.GetItemText(x, 0), m_VarList.GetItemText(x, 1));
}


Since the state of the radio buttons will not change within this for() loop, why not put the if() statement outside of the loop?

In any case, since you indicate that the registry is being updated correctly, how is this other program accessing the registry such that it is not getting the updated values?

Also, if this other program is not running at the time the registry is being updated, the SendMessageTimeout(HWND_BROADCAST, WM_SETTINGCHANGE, ...) code is meaningless anyway.


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


GeneralRe: Propegating System Varaiables Pin
Guinness4Strength2-Jun-05 5:57
Guinness4Strength2-Jun-05 5:57 
GeneralRe: Propegating System Varaiables Pin
David Crow2-Jun-05 6:17
David Crow2-Jun-05 6:17 
GeneralRe: Propegating System Varaiables Pin
Guinness4Strength2-Jun-05 9:42
Guinness4Strength2-Jun-05 9:42 
GeneralRe: Propegating System Varaiables Pin
David Crow2-Jun-05 9:50
David Crow2-Jun-05 9:50 
GeneralRe: Propegating System Varaiables Pin
Guinness4Strength2-Jun-05 9:52
Guinness4Strength2-Jun-05 9:52 
GeneralRe: Propegating System Varaiables Pin
David Crow2-Jun-05 9:58
David Crow2-Jun-05 9:58 
GeneralRe: Propegating System Varaiables Pin
Guinness4Strength2-Jun-05 10:03
Guinness4Strength2-Jun-05 10:03 
GeneralRe: Propegating System Varaiables Pin
David Crow3-Jun-05 4:43
David Crow3-Jun-05 4:43 
GeneralRe: Propegating System Varaiables Pin
Guinness4Strength3-Jun-05 5:00
Guinness4Strength3-Jun-05 5:00 
GeneralRe: Propegating System Varaiables Pin
David Crow3-Jun-05 5:10
David Crow3-Jun-05 5:10 
GeneralRe: Propegating System Varaiables Pin
Guinness4Strength3-Jun-05 5:13
Guinness4Strength3-Jun-05 5:13 
GeneralRe: Propegating System Varaiables Pin
David Crow3-Jun-05 5:20
David Crow3-Jun-05 5:20 
GeneralRe: Propegating System Varaiables Pin
Guinness4Strength3-Jun-05 5:22
Guinness4Strength3-Jun-05 5:22 
GeneralRe: Propegating System Varaiables Pin
Blake Miller2-Jun-05 9:30
Blake Miller2-Jun-05 9:30 
GeneralRe: Propegating System Varaiables Pin
Guinness4Strength2-Jun-05 9:39
Guinness4Strength2-Jun-05 9:39 
GeneralRe: Propegating System Varaiables Pin
Blake Miller2-Jun-05 14:11
Blake Miller2-Jun-05 14:11 
GeneralHandle maps Pin
Budric B.2-Jun-05 4:37
Budric B.2-Jun-05 4:37 

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.