|
-
May 24th, 1999, 04:49 PM
#1
problem localizing CFileDialog template
Environment : VC++ 6.0 sp2, WinNT,Win95, MFC/C++
I'm having problems with the localization (to Japanese) of a template attached to a CFileDialog. I have localized the text on the Dialog page in my resources, but when I bring up the Open Dialog, the text is garbage. Attached is a sample of the code I'm using, does anyone know what the problem might be? Thanks in advance.
--Stephan
// Insert File dialog
CFileDialog IMFdlg( TRUE, NULL, NULL, NULL, filterString, NULL );
IMFdlg.m_ofn.lStructSize = sizeof OPENFILENAME;
IMFdlg.m_ofn.hInstance = AfxGetInstanceHandle();
IMFdlg.m_ofn.lpfnHook = (LPCFHOOKPROC)OpenCallbackProc;
IMFdlg.m_ofn.Flags = OFN_ENABLEHOOK|OFN_HIDEREADONLY|
OFN_PATHMUSTEXIST| OFN_FILEMUSTEXIST|
OFN_OVERWRITEPROMPT| OFN_NOCHANGEDIR;
IMFdlg.m_ofn.Flags |= OFN_EXPLORER| OFN_ENABLETEMPLATE;
IMFdlg.m_ofn.lpTemplateName = (LPCTSTR)MAKEINTRESOURCE( IDD_OPEN_DLG_TEMPLATE );
IMFdlg.m_ofn.lpstrInitialDir = ImportFileDir;
IMFdlg.m_ofn.lpstrTitle = title.GetBuffer(0);
if ( IMFdlg.DoModal() == IDOK)
{
...
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|