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 » ProfUIS text in Status Bar Collapse All
Subject Author Date
Suhai Gyorgy Mar 21, 2007 - 9:56 AM

Dear Support,

In our application users can change the language of the UI dynamically. For this reason, we’d like to disable every text and message that comes from ProfUIS resources. We managed quite good for now, but I noticed that a "Press the Ctrl key to prevent docking" message appears in the status bar when any of the bars are being dragged. How could we disable or customize this message by code?

Thank you!
Chris

Technical Support Mar 21, 2007 - 11:27 AM

You should handle the WM_SETMESSAGESTRING message in the main frame window. If wParam is equal to IDS_EXTSTATUS_PREVENT_DOCKING, simply return zero in LRESULT. Otherwise you should let the parent class handle this message to display other status tips. You will need the following includes for implementation of the WM_SETMESSAGESTRING message handler because this message is MFC specific and the IDS_EXTSTATUS_PREVENT_DOCKING identifier is defined in Prof-UIS resources:

#if (!defined __AFXPRIV_H__)
      #include <AfxPriv.h>
#endif

#include <Resources/Resource.h>