|
hi i am trying to display icons or bitmaps on popup menu and on status bar for dialog based application.
i got some demo examples for this but those examples are for MDI & SDI,i applied whatever logic is there for MDI n SDI but that is not working for dialog box n i want to show this for a dialog based application only.
thanks in advance
|
|
|
|
|
|
thanks Hamid.
Putting a Progress Bar, BitMap, Animation or Dialog in a Multi Pane Status Bar (The Easy Way).
i tried to run this application but it is getting crashed.
|
|
|
|
|
this application is giving some compile time errors
|
|
|
|
|
|
Can you show your errors?
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
thanks Hamid,
it is working now.
can u plz tell me how to divide status bar panes into 3 equal parts of a dialog box?
|
|
|
|
|
I think you cant do it.
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
i have done that n that is working properly.
i could do this coz of demo of i got 1 class ie CBmpMenu.
|
|
|
|
|
Hi all
I would like to stop executing the
std::getline( std::cin, aString )
function from another thread
when getline is blocked waiting for user input.
A possible solution is to put the function into another thread
and stop this last when I need.
Instead of using another thread, is there some global
function or OS function that is possible to call?
I imagine since std::cin should be running in a OS
thread, right?...maybe some signal?
Thanks for your help
ManuStone
|
|
|
|
|
|
|
could any1 tell me how to put a back ground picture in a mfc dialog?
|
|
|
|
|
See here[^]
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
|
Please let me how to change the font of parent node and also how to make it BOLD in tree control.
Thanks in Advance
|
|
|
|
|
There is no TVM_SETITEMFONT message, and TVITEM has no font member - so you're going to have to roll your sleeves and do it yourself.
Or, there are plenty of articles on codeproject to do with owner draw tree controls.
It's a shame, though - I'd think font is quite a good extension to a tree view item properties. But it's not up to me!
Good luck,
Iain.
|
|
|
|
|
You can change the font with custom draw. Handle NM_CUSTOMDRAW and select a new font into the DC that you get with the message. Bolding an item is built-in, set the TVIS_BOLD style on the node (or you can just select a bold font when you handle NM_CUSTOMDRAW ).
|
|
|
|
|
I am trying to build this custom control - one of the child windows is an edit control and at one point it gets the focus (you can type in it) but the cursor has disappeared... what could cause this and how can I fix this?
Thanks in advance
modified on Monday, December 8, 2008 9:43 AM
|
|
|
|
|
That's the default behaviour of the edit field, you can see the same behaviour in a lot of programs, when you start typing, it hides the mouse cursor. Just run notepad and start typing...
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
|
|
|
|
|
No - the cursor disappears and does not come back... I can ensure you it's not the default behaviour!
|
|
|
|
|
Doesn't come back even if you move the mouse?
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
|
|
|
|
|
No it's most strange - I can select text (and it gets higlighted) but there is no way of knowing where the cursor is (and the edit box is enabled, typing works!) . The only thing that works is to give the focus to another control (with mouse or tab) and then come back to it... strangest thing I have seen in a while!
|
|
|
|
|
3 questions:
1. Is the edit box customized in any way or is it just the default edit box? So did you overwrite any message handlers like WM_SETCURSOR or maybe WM_CHAR?
2. Does the cursor disappear when you start typing only or when you move the mouse cursor over your edit or maybe TAB to it?
3. Does this happen if you don't use your own cursor?
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
|
|
|
|
|
Thanks for taking the time to answer by the way!
1) No it's a simple CEdit... I did override WM_KEYDOWN (with PreTranslateMessage in the parent window)... I am doing a custom control where you can view some html and view the source code... and switch with a custom tab control from one to the other. Hoping I make sense...
2) The cursor disappears when the user clicks on the tab control... it hides the other window, displays the edit, gives it focus and voila - you can type but you have no idea where you are
3) Not sure I understand... do you want me to change the cursor? I certainly have not changed it manually so far
|
|
|
|