Click here to Skip to main content
16,011,744 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to chanhe background at button ? Pin
vgrigor3-Feb-04 0:22
vgrigor3-Feb-04 0:22 
AnswerRe: How to chanhe background at button ? Pin
BaldwinMartin3-Feb-04 0:31
BaldwinMartin3-Feb-04 0:31 
GeneralRe: How to chanhe background at button ? Pin
vgrigor3-Feb-04 0:34
vgrigor3-Feb-04 0:34 
AnswerRe: How to chanhe background at button ? Pin
Michael P Butler3-Feb-04 0:47
Michael P Butler3-Feb-04 0:47 
GeneralRe: How to chanhe background at button ? Pin
vgrigor3-Feb-04 1:11
vgrigor3-Feb-04 1:11 
GeneralRe: How to chanhe background at button ? Pin
Michael P Butler3-Feb-04 1:14
Michael P Butler3-Feb-04 1:14 
GeneralRe: How to chanhe background at button ? Pin
vgrigor3-Feb-04 1:26
vgrigor3-Feb-04 1:26 
General821114 - MDI menus Pin
hamidi23-Feb-04 0:17
susshamidi23-Feb-04 0:17 
hi i use LoadMenu after SetThreadLocale to bring up Hebrew menus and replace the English ones with them. the problem is that whenever i close all documents or open a new document when no doc is open the new menu is opened in English while the thread locale is set to Hebrew.
what's wrong?
i use the following method to change the current menu lang:

UINT getDocTemplateId(CDocTemplate* pDocTemplate)
{
// Helper class to extract the m_nIDResource member
class CHelperDocTemplate : public CDocTemplate
{
public:
CHelperDocTemplate():CDocTemplate(0, NULL, NULL, NULL){}
UINT GetResourceId(){return m_nIDResource;}
};
return ((CHelperDocTemplate*)pDocTemplate)->GetResourceId();
}

void CMainFrame::pr_changeLanguage(AeLanguage lang)
{
SetThreadLocale(MAKELCID(MAKELANGID((lang==langFarsi)?LANG_ARABIC:LANG_ENGLISH,SUBLANG_DEFAULT),SORT_DEFAULT));
CMDIChildWnd *pChildWnd=MDIGetActive();
HMENU hMenu=LoadMenu(NULL,MAKEINTRESOURCE(pChildWnd?getDocTemplateId(pChildWnd->GetActiveDocument()->GetDocTemplate()):m_nIDHelp));
DelayUpdateFrameMenu(hMenu);
}

thank u

GeneralRe: 821114 - MDI menus Pin
Roger Allen3-Feb-04 2:47
Roger Allen3-Feb-04 2:47 
Generalabt MFC controls Pin
skpanda3-Feb-04 0:16
skpanda3-Feb-04 0:16 
GeneralRe: abt MFC controls Pin
BaldwinMartin3-Feb-04 0:36
BaldwinMartin3-Feb-04 0:36 
GeneralDynamic create Dialogs Pin
AnTri2-Feb-04 23:46
AnTri2-Feb-04 23:46 
GeneralRe: Dynamic create Dialogs Pin
Maximilien3-Feb-04 2:50
Maximilien3-Feb-04 2:50 
GeneralA question about the frame and toolbar Pin
Member 6335772-Feb-04 23:01
Member 6335772-Feb-04 23:01 
Generalpcap with IP-TV, Transport Stream Pin
styve2-Feb-04 22:36
styve2-Feb-04 22:36 
GeneralWindow Media Control Pin
Ngo Anh Vu2-Feb-04 22:35
Ngo Anh Vu2-Feb-04 22:35 
GeneralRe: Window Media Control Pin
don7cry3-Feb-04 13:53
don7cry3-Feb-04 13:53 
GeneralRe: Window Media Control Pin
Anonymous3-Feb-04 16:31
Anonymous3-Feb-04 16:31 
GeneralRe: Window Media Control Pin
don7cry3-Feb-04 17:06
don7cry3-Feb-04 17:06 
GeneralRe: Window Media Control Pin
sstoyan3-Feb-04 21:54
sstoyan3-Feb-04 21:54 
Questionhow to play audio file over Internet Pin
don7cry2-Feb-04 22:35
don7cry2-Feb-04 22:35 
GeneralGet Product Version Pin
ctopmep2-Feb-04 22:33
ctopmep2-Feb-04 22:33 
GeneralCoInitializeEx & SOAP Pin
Victor19782-Feb-04 22:06
Victor19782-Feb-04 22:06 
Generalflock question Pin
alex.barylski2-Feb-04 22:04
alex.barylski2-Feb-04 22:04 
QuestionAbout the WAV to WMA of audio ? Pin
zhaopzhi2-Feb-04 21:42
zhaopzhi2-Feb-04 21:42 

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.