Type: Posts; User:
Any help on this? I'm stumped.
The CDialogBar works great! Thanks. How can I set it's background colour?
This is the screenshot. The label bit is custom drawn (no CStatic is involved).
I think you've misunderstood me. I'd like the same as what is in the attached project, but without using views.
Well without views isn't totally true. The problem is that I don't want to use more...
The child frame will be maximised. I'd a nice big label to show the user where they are. It has a different background color and I'd like to put an icon there too eventually.
I'd like to have a header bar in an mdichildframewnd which displays a title for the current view. I'd like a toolbar to go below this.
I can create this bar overiding ondraw in a CView, but...
RecalcLayout didn't help. Let me explain some more.
I have a toolbar which has three buttons and a combo box. All the buttons have an icon, the first button also has text to the right of the icon....
In the end I did the following:
CString strButtonText = "Something...";
tbbi.cbSize = sizeof(tbbi);...
It seems I needed the flat TBIF_BYINDEX. However, this only works correctly if I don't set the text. If I set the text (either method) it causes all buttons to change size. It even pushes other...
I've created the toolbar using the style TBSTYLE_LIST. I've tried the code below, but neither the text appears nor the button size changes. If I remove the text from the buttonInfo and set it instead...
My mistake. So to use this I'll have to derive from CToolBar and add some functions to set the button sizes. Is there a good place to do this such that all button size according to text width?...
As far as I'm aware, and according to the msdn docs, SetButtonInfo only sets the width of a separator. For all other types it sets the index of the image to use.
I've created a toolbar that has text to the right of the icon using the TBSTYLE_LIST style and added text to a button using SetButtonText(). Initially, the button size is not changed to reflect the...
My point was, the toolbars still appear next to one another. Are you saying that if I use different toolbar resource ids and different AFX_IDW_TOOLBAR ids, it will work?
The same toolbar ID (AFX_IDW_TOOLBAR) is used in MainFrm and it works fine there. Plus, if I use unique ids in SplitFrame (AFX_IDW_TOOLBAR+n) I still get the same problem.
Ok, that's a glaring mistake, but it shouldn't be the cause of the problem though, should it?
Sorry, I was using the quick post dialog so didn't see that you could attach here. I've attached it now with all the unrequired files deleted.
I followed the code through but as far as I can tell they do the same thing. Obviously, that isn't the case, but I am having trouble finding it.
I've uploaded the file to...
The toolbars dock on two rows rather than side by side; the same code works fine when I put the toolbars on the main mdi frame, just not for the child frame.
I have an mdi application where the mdi child frame has two toolbars. I can get these to dock nicely, but they are on two rows rather than one.
I've read the following article but it doesn't work...
January 9th, 2009
I'd like to load a standard icon in my application, such as IDI_QUESTION. Using LoadIcon, this works fine, but the icon loaded is 32x32, whereas I'd like 16x16.
I've tried the following code to...
January 8th, 2009
I'm sending a WM_NOTIFY message to another class, which has a message map set up to handle the notification. However, the function I've set up in the message map is never called. The code is below:
January 8th, 2009
I didn't notice that, thanks. I suppose that is close to the assumption I had.
Never as in never ever. Even if I leave the mouse alone, it still doesn't fire.
Perhaps you could...
January 7th, 2009
I'm using SetTimer in some functions which are causing the OnTimer function to be called correctly. However, when I use SetTimer in OnMouseMove, the OnTimer function is never called. Is this because...
January 5th, 2009
I'm trying to create a tracking tooltip that displays the current value in a graph depending on the cursor position. I have several problems:
1. The tooltip doesn't appear the first time the mouse...
Click Here to Expand Forum to Full Width