Click here to Skip to main content
15,913,685 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Current system date Pin
chandu00423-Oct-07 1:26
chandu00423-Oct-07 1:26 
GeneralRe: Current system date Pin
ThatsAlok23-Oct-07 1:00
ThatsAlok23-Oct-07 1:00 
GeneralRe: Current system date Pin
CodingLover23-Oct-07 1:06
CodingLover23-Oct-07 1:06 
GeneralRe: Current system date Pin
ThatsAlok23-Oct-07 1:14
ThatsAlok23-Oct-07 1:14 
GeneralRe: Current system date Pin
David Crow23-Oct-07 3:07
David Crow23-Oct-07 3:07 
QuestionReload the MFC UI with different resources during run-time? Pin
KnoenTCP22-Oct-07 23:52
KnoenTCP22-Oct-07 23:52 
AnswerRe: Reload the MFC UI with different resources during run-time? Pin
Naveen23-Oct-07 1:01
Naveen23-Oct-07 1:01 
GeneralRe: Reload the MFC UI with different resources during run-time? Pin
KnoenTCP23-Oct-07 2:47
KnoenTCP23-Oct-07 2:47 
I switch the resource in a dialog class function, e.g. CMyChangeLanuageDialog::OnOK
<br />
...<br />
m_hResourceDLL = LoadLibrary( (LPCSTR)strDllFileName );<br />
AfxSetResourceHandle( m_hResourceDLL );<br />
...<br />

Same is done at startup in something like CMyApp::initilize(), where CMyApp is derived from CWinApp. After which the application picks the right resources when creating the UI.

But when I just set a new file-handle during run-time with AfxSetResourceHandle() it does not seem to reload the UI, only save the new handle for future checks. Thats why I'm looking for some global redraw function.
AnswerRe: Reload the MFC UI with different resources during run-time? Pin
Mark Salsbery23-Oct-07 8:29
Mark Salsbery23-Oct-07 8:29 
GeneralRe: Reload the MFC UI with different resources during run-time? Pin
KnoenTCP23-Oct-07 21:12
KnoenTCP23-Oct-07 21:12 
GeneralRe: Reload the MFC UI with different resources during run-time? Pin
Mark Salsbery24-Oct-07 5:38
Mark Salsbery24-Oct-07 5:38 
Questionmessage localization Pin
George_George22-Oct-07 23:40
George_George22-Oct-07 23:40 
Questionpositioning problem Pin
john563222-Oct-07 23:30
john563222-Oct-07 23:30 
AnswerRe: positioning problem Pin
chandu00422-Oct-07 23:49
chandu00422-Oct-07 23:49 
GeneralRe: positioning problem Pin
john563223-Oct-07 0:16
john563223-Oct-07 0:16 
GeneralRe: positioning problem Pin
chandu00423-Oct-07 0:28
chandu00423-Oct-07 0:28 
GeneralRe: positioning problem Pin
john563223-Oct-07 0:33
john563223-Oct-07 0:33 
GeneralRe: positioning problem Pin
chandu00423-Oct-07 0:41
chandu00423-Oct-07 0:41 
GeneralRe: positioning problem Pin
john563223-Oct-07 0:45
john563223-Oct-07 0:45 
GeneralRe: positioning problem Pin
chandu00423-Oct-07 0:53
chandu00423-Oct-07 0:53 
QuestionRe: positioning problem Pin
David Crow23-Oct-07 3:15
David Crow23-Oct-07 3:15 
AnswerRe: positioning problem Pin
chandu00423-Oct-07 18:29
chandu00423-Oct-07 18:29 
QuestionRe: positioning problem Pin
David Crow23-Oct-07 3:17
David Crow23-Oct-07 3:17 
Questioninternet chat application Pin
_tasleem22-Oct-07 23:27
_tasleem22-Oct-07 23:27 
AnswerRe: internet chat application Pin
chandu00423-Oct-07 0:02
chandu00423-Oct-07 0:02 

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.