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 » Create a Pop-up Window Collapse All
Subject Author Date
Chun Pong Lau Sep 6, 2009 - 8:03 AM

Dear support team,


How can we open a pop-up window with your library? It has to be the type which has an icon staying in the task bar list.


Thanks a lot.


Best regards,


Chun Pong

Chun Pong Lau Sep 7, 2009 - 3:37 AM

Dear support team,


Please assume I can do the following in a CWnd derived constructor as below:


        HINSTANCE hInstance = (HINSTANCE) GetModuleHandle(NULL);




        CString sClass = AfxRegisterWndClass(

            CS_VREDRAW | CS_HREDRAW,

            ::LoadCursor(NULL, IDC_ARROW),

            (HBRUSH) ::GetStockObject(WHITE_BRUSH),

            //::LoadIcon(NULL, IDI_APPLICATION)

            ::LoadIcon(hInstance, MAKEINTRESOURCE(IDI_WHITEMSG))

        );



        BOOL status = CreateEx(

            0, // WS_EX_APPWINDOW | WS_EX_CLIENTEDGE | WS_EX_WINDOWEDGE,

            sClass,

            sCaption,

            WS_OVERLAPPEDWINDOW | WS_VISIBLE|WS_BORDER,

            CW_USEDEFAULT, CW_USEDEFAULT,

            ISM_DEFAULT_W, ISM_DEFAULT_H,

            NULL, NULL, NULL);


What I would like to ask is that how to make the window layout be consistent if I used:


    g_PaintManager.InstallPaintManager(RUNTIME_CLASS(CExtPaintManagerOffice2007_R2_Obsidian))


Like the black caption bar, black buttons for maximize, minimize and close.


Thanks in advance.


Regards,


Chun Pong


 

Technical Support Sep 8, 2009 - 1:53 AM

You should simply create any window based on the CExtNCW template class: CExtNCW < CWnd >, CExtNCW < CFrameWnd >, CExtNCW < CExtResizableDialog >.