 |
|
 |
I don't see a license of any kind in the article, or in the code. Is this released as public domain, for any use, etc.?
Thanks!
*Real* programmers use "copy con:progname.exe"!
|
|
|
|
 |
|
 |
Hello,
i'm working with VS .Net and i want to put a clock in the statusbar. But i don't no how to do that. Can help me?
I'm new in this language of programming.
|
|
|
|
 |
|
 |
hello is it possible to check the ready state of the normal window (Except internet explorer)and other applications please help me
lokesh
|
|
|
|
 |
|
 |
hello is it possible to check the ready state of the normal window and other applications please help me
lokesh
|
|
|
|
 |
|
 |
Hi
This is nice article.
I just wanted to know how we can add this to dialog based application?
Thanks,
Sudhakar
Indians are genius with Lazy Minds
|
|
|
|
 |
|
 |
it's great work ,but how can i change the bk clr of the logo text?
|
|
|
|
 |
|
 |
it is really very simle just use the CStatusBar::OnEraseBkGnd() and CStatusBar::OnPaint() functions to do so. In these function add the functionality to set the color of your choice
|
|
|
|
 |
|
 |
Adding a control to the status bar within the border of a pane
doesn't work properly if application loads the common control library 6 (specified in a manifest file). For example, if you supply a manifest file for the demo project executable (MPCStatusBar_Demo.exe.manifest) and you check the 'Add a EDIT to statusbar' toggle the width of the created edit control does not cover the whole pane. Reason: GetItemRect returns a value that is different from the value set by SetPaneInfo()!!!
Does anyone have a solution for this problem?
Regards Andreas
|
|
|
|
 |
|
 |
By the way, GetPaneInfo returns correct value. This offers an easy workaround!
Andreas
|
|
|
|
 |
|
 |
Any ideas on how to capture the enter key being pressed while they
are typing in the Edit Box on the Status Bar?
Going to work on it and will post it here if I figure it out.
If someone else knows that would be super.
|
|
|
|
 |
|
 |
I need that, too. I'm going to make it this way:
Create a member variable of CMainFrame, type CMyEdit and use this for the statusbar. Then subclassing a CEdit as CMyEdit which will catch OnKeyDown().
Any better ideas? Without subclassing a CEdit? That would be cool.
Best regards,
Gernot Frisch
www.Dream-D-Sign.de
|
|
|
|
 |
|
 |
Gernot Frisch wrote:
Any better ideas? Without subclassing a CEdit? That would be cool.
Sure. Override PreTranslateMessage and don't call the base class if the enter key was pressed. This technique will work for all CControlBar based Classes.
BOOL YourStatusBar::PreTranslateMessage(MSG* pMsg)
{
if( IsDialogMessage( pMsg ) ) {
if( pMsg->message == WM_KEYDOWN && pMsg->wParam == VK_RETURN ) {
}
return TRUE;
}
return MPCStatusBar::PreTranslateMessage( pMsg );
}
|
|
|
|
 |
|
 |
Try this...
pMainframe->m_wndStatusBar.RemovePane(0); // READY pane
pMainframe->m_wndStatusBar.RemovePane(59137); // CAPS lock pane
pMainframe->m_wndStatusBar.RemovePane(59138); // NUMS lock pane
pMainframe->m_wndStatusBar.RemovePane(59139); // OTHER lock pane
Granted there is prolly an easier way but I did not find it
nor did I want to bother asking on the boards.
Inashadow@aol.com
|
|
|
|
 |
|
 |
What about simply replacing:
if (!m_wndStatusBar.Create(this) ||
!m_wndStatusBar.SetIndicators(indicators,
sizeof(indicators)/sizeof(UINT))) with:
if (!m_wndStatusBar.Create(this)) in the main frame OnCreate?
|
|
|
|
 |
|
 |
Dear friends,
How can I disable the "Ready" string field on the status bar?
Good day....
Regards,
Eric Lee
|
|
|
|
 |
|
 |
Just remove the first pane or change AFX_IDS_IDLEMESSAGE to display different idle message. To disable the pane you can call SetPaneStyle:
m_wndStatusBar.SetPaneStyle(0, m_wndStatusBar.GetPaneStyle(0) | SBPS_DISABLED);
Armen Hakobyan
armenh@cit.am
|
|
|
|
 |
|
 |
First ,it's great work !
but i had a question ,that is how i can add tips for pane and controls?
|
|
|
|
 |
|
 |
Call CreateEx function instead of Create and set dwCtrlStyle to SBT_TOOLTIPS. Then use CStatusBarCtrl::SetTipText to set tooltips. Sample usage:
if (!m_wndStatusBar.CreateEx(this, SBT_TOOLTIPS) ||
!m_wndStatusBar.SetIndicators(indicators,
sizeof(indicators)/sizeof(UINT)))
{
TRACE0("Failed to create status bar\n");
return -1; // fail to create
}
m_wndStatusBar.GetStatusBarCtrl().SetTipText(0, "Ole ole ole");
NOTE: Tooltips will not be displayed if
all the text can be seen in the part, or if the control is in simple mode.
Armen Hakobyan
armenh@cit.am
|
|
|
|
 |
|
 |
Great job!
So Cool!;)
let's talk about code ^6^
|
|
|
|
 |
|
 |
How to ad a Progress control in the status bar?
Thank you very much
Giancarlo
|
|
|
|
 |
|
 |
Look through the project source
|
|
|
|
 |
|
 |
First, let me tell you that your code is proving to be a very useful add on to my project.
I have one question, though. When I create a CButton within the status bar, it appears correctly, but it shows as disabled (grayed out). I've added the message map command for it in MPCStatusBar.cpp :
ON_BN_CLICKED(INDICATOR_FORWARDBTN, OnFrameForward)
and did the counterpart in the header file:
afx_msg void OnFrameForward();
...but it still appears disabled.
Any idea why I can't seem to enable it?
By the way, I've added a message map to check when the edit box loses focus and it works perfectly. Don't know if that helps, but I figured I might as well mention it.
Thank you!
|
|
|
|
 |
|
 |
I really like this code. It's very cool.
Is there any way of changing the right edit pane from white
to grey so that it blends in with the rest of the application?
Also, is there any way of centering the logo pane?
Please, any response you can give me will be greatly appreciated.
Sincerely,
Erich J. Ruth (an overworked graduate student
|
|
|
|
 |
|
 |
Hi...
there is a minor bug, shown in the demo picture. The underscore is cut off.
I've experimented with an earlier version of your statusbar integrated in the Code Jockey Library. You must use a smaller font. The useable space has only the hight of one pane. Just fill the background of the calculated rect with another color.
Greetinx
Peter :-
|
|
|
|
 |