Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » GUI theme problem Collapse All
Subject Author Date
Vincent Lin Apr 17, 2007 - 6:54 PM

Hi,
I creates a MDI program and adds below code to MainFrame constructor, but the theme don’t changed.
do I miss something ?

VERIFY(
g_PaintManager.InstallPaintManager(
new CExtPaintManagerStudio2005
)
);

Vincent Lin Apr 18, 2007 - 8:28 PM

I can build project successfully, but the theme not be changed. I use

Visual Studio 2005 V8.0.50727
Prof-UIS V2.64

Technical Support Apr 19, 2007 - 6:45 AM

Would you send us this project so we can test here?


Technical Support Apr 20, 2007 - 9:11 AM

Thank you for the test project. However it is a basic MFC application without any Prof-UIS components added. So just adding the paint manager cannot change the application look. There is a good article that describes how to start using Prof-UIS Getting Started with Prof-UIS. Please let us know if you read it.

Vincent Lin Apr 18, 2007 - 2:37 AM

Dear Suhai,
I don’t use PaintManagerStateLoad in my program. I just create a new MDI project and add above code.

Suhai Gyorgy Apr 18, 2007 - 3:48 AM

I tried to do the same, create a new MDI project with all the default settings, except that I use static unicode library of ProfUIS. Unfortunately AppWizard generated a project which cannot be compiled, due to unresolved external symbols, so I couldn’t regenerate the problem.

Anyway, I saw that in the generated project, PaintManager is set in the SetupUiAdvancedOptions method of the application class.
By default, it is set to install CExtPaintManagerXP. Try to change that code, installing different PaintManager there.
And does the theme change with any other kind of PaintManager?

Technical Support Apr 18, 2007 - 9:44 AM

Please let us know which versions of Visual Studio and Prof-UIS App Wizard were used for generating the project that cannot be compiled? We changed the application wizards for all supported versions of Visual Studio versions in v.2.63.

Suhai Gyorgy Apr 19, 2007 - 1:51 AM

I’m using Visual Studio .NET 2003. In its About... dialog it says: Microsoft Development Environment 2003 Version 7.1.3088. Installed products: Microsoft Visual C++ .NET
I’m using latest ProfUIS, v2.64, with files updated from profuis2641.zip file downloaded March 21st of 2007.

As I mentioned in previous post, I’ve used default settings provided by AppWizard, except that in AppWizard I switched to use MFC and ProfUIS statically, and after that in project properties I changed to use Unicode character set. Rebuilt Debug version of project, here are the errors I got:
- MDITest error LNK2001: unresolved external symbol "public: virtual int __thiscall CExtResDlg::Create(wchar_t const *,class CWnd *)" (?Create@CExtResDlg@@UAEHPB_WPAVCWnd@@@Z)
- MDITest error LNK2001: unresolved external symbol "public: virtual wchar_t const * __thiscall CExtNcFrameImpl::NcFrameImpl_GetScTipText(unsigned int)const " (?NcFrameImpl_GetScTipText@CExtNcFrameImpl@@UBEPB_WI@Z)
- MDITest error LNK2001: unresolved external symbol "public: virtual wchar_t const * __thiscall CExtResizableDialog::OnQuerySkinnedFontParmName(void)const " (?OnQuerySkinnedFontParmName@CExtResizableDialog@@UBEPB_WXZ)
- MDITest error LNK2019: unresolved external symbol "public: bool __thiscall CExtCmdManager::ProfileSetup(wchar_t const *,struct HWND__ *,class CExtCmdProfile *)" (?ProfileSetup@CExtCmdManager@@QAE_NPB_WPAUHWND__@@PAVCExtCmdProfile@@@Z) referenced in function "public: void __thiscall CMDITestApp::SetupUiAdvancedOptions(void)" (?SetupUiAdvancedOptions@CMDITestApp@@QAEXXZ)
- MDITest error LNK2019: unresolved external symbol "public: bool __thiscall CExtCmdManager::ProfileWndAdd(wchar_t const *,struct HWND__ *)" (?ProfileWndAdd@CExtCmdManager@@QAE_NPB_WPAUHWND__@@@Z) referenced in function "protected: int __thiscall CMainFrame::OnCreate(struct tagCREATESTRUCTW *)" (?OnCreate@CMainFrame@@IAEHPAUtagCREATESTRUCTW@@@Z)
- MDITest error LNK2019: unresolved external symbol "public: bool __thiscall CExtCmdManager::SerializeState(wchar_t const *,wchar_t const *,wchar_t const *,bool,struct HKEY__ *,bool)" (?SerializeState@CExtCmdManager@@QAE_NPB_W00_NPAUHKEY__@@1@Z) referenced in function "protected: int __thiscall CMainFrame::OnCreate(struct tagCREATESTRUCTW *)" (?OnCreate@CMainFrame@@IAEHPAUtagCREATESTRUCTW@@@Z)
- MDITest error LNK2019: unresolved external symbol "public: bool __thiscall CExtCmdManager::SetBasicCommands(wchar_t const *,unsigned int *,bool)" (?SetBasicCommands@CExtCmdManager@@QAE_NPB_WPAI_N@Z) referenced in function "protected: int __thiscall CMainFrame::OnCreate(struct tagCREATESTRUCTW *)" (?OnCreate@CMainFrame@@IAEHPAUtagCREATESTRUCTW@@@Z)
- MDITest error LNK2019: unresolved external symbol "public: bool __thiscall CExtCmdManager::UpdateFromMenu(wchar_t const *,unsigned int,bool,bool)" (?UpdateFromMenu@CExtCmdManager@@QAE_NPB_WI_N1@Z) referenced in function "protected: int __thiscall CMainFrame::OnCreate(struct tagCREATESTRUCTW *)" (?OnCreate@CMainFrame@@IAEHPAUtagCREATESTRUCTW@@@Z)
- MDITest error LNK2019: unresolved external symbol "public: static bool __cdecl CExtControlBar::ProfileBarStateLoad(class CFrameWnd *,wchar_t const *,wchar_t const *,wchar_t const *,struct tagWINDOWPLACEMENT *,bool,bool,struct HKEY__ *,bool)" (?ProfileBarStateLoad@CExtControlBar@@SA_NPAVCFrameWnd@@PB_W11PAUtagWINDOWPLACEMENT@@_N3PAUHKEY__@@3@Z) referenced in function "protected: int __thiscall CMainFrame::OnCreate(struct tagCREATESTRUCTW *)" (?OnCreate@CMainFrame@@IAEHPAUtagCREATESTRUCTW@@@Z)
- MDITest error LNK2019: unresolved external symbol "public: static bool __cdecl CExtControlBar::ProfileBarStateSave(class CFrameWnd *,wchar_t const *,wchar_t const *,wchar_t const *,struct tagWINDOWPLACEMENT *,bool,bool,struct HKEY__ *,bool)" (?ProfileBarStateSave@CExtControlBar@@SA_NPAVCFrameWnd@@PB_W11PAUtagWINDOWPLACEMENT@@_N3PAUHKEY__@@3@Z) referenced in function "public: virtual int __thiscall CMainFrame::DestroyWindow(void)" (?DestroyWindow@CMainFrame@@UAEHXZ)
- MDITest error LNK2019: unresolved external symbol "public: static bool __cdecl CExtControlBar::stat_LoadWindowRect(struct HWND__ *,wchar_t const *,wchar_t const *,bool)" (?stat_LoadWindowRect@CExtControlBar@@SA_NPAUHWND__@@PB_W1_N@Z) referenced in function "public: virtual void __thiscall CExtWS<class CExtADLG<class CExtResDlg>,301>::LoadWindowRect(bool)" (?LoadWindowRect@?$CExtWS@V?$CExtADLG@VCExtResDlg@@@@$0BCN@@@UAEX_N@Z)
- MDITest error LNK2019: unresolved external symbol "public: static bool __cdecl CExtControlBar::stat_SaveWindowRect(struct HWND__ *,wchar_t const *,wchar_t const *)" (?stat_SaveWindowRect@CExtControlBar@@SA_NPAUHWND__@@PB_W1@Z) referenced in function "public: virtual void __thiscall CExtWS<class CExtADLG<class CExtResDlg>,301>::SaveWindowRect(void)const " (?SaveWindowRect@?$CExtWS@V?$CExtADLG@VCExtResDlg@@@@$0BCN@@@UBEXXZ)
- MDITest error LNK2019: unresolved external symbol "public: virtual wchar_t const * __thiscall CExtNcFrameImpl::NcFrameImpl_GetScTipText(unsigned int)const " (?NcFrameImpl_GetScTipText@CExtNcFrameImpl@@UBEPB_WI@Z) referenced in function "public: __thiscall CMainFrame::CMainFrame(void)" (??0CMainFrame@@QAE@XZ)
- MDITest fatal error LNK1120: 12 unresolved externals

Technical Support Apr 20, 2007 - 10:17 AM

It seems the Prof-UIDS Application Wizard creates the project with Treat wchar_t as Built-in Type turned on. But for the library projects, it is turned off. We will fix this issue in the next version. Thank you.



Suhai Gyorgy Apr 18, 2007 - 1:30 AM

Do you use PaintManagerStateLoad method anywhere in your code? That could override the setting of paintmanager in constructor.