CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: rioch

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Replies
    12
    Views
    12,585

    Re: Toolbar button sizes

    Any help on this? I'm stumped.
  2. Replies
    9
    Views
    1,085

    Re: Header in MDIChildFrameWnd

    The CDialogBar works great! Thanks. How can I set it's background colour?
  3. Replies
    9
    Views
    1,085

    Re: Header in MDIChildFrameWnd

    This is the screenshot. The label bit is custom drawn (no CStatic is involved).
  4. Replies
    9
    Views
    1,085

    Re: Header in MDIChildFrameWnd

    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...
  5. Replies
    9
    Views
    1,085

    Re: Header in MDIChildFrameWnd

    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.
  6. Replies
    9
    Views
    1,085

    Header in MDIChildFrameWnd

    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...
  7. Replies
    12
    Views
    12,585

    Re: Toolbar button sizes

    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....
  8. Replies
    12
    Views
    12,585

    Re: Toolbar button sizes

    In the end I did the following:

    m_wndToolBar1.GetToolBarCtrl().SetExtendedStyle(TBSTYLE_EX_MIXEDBUTTONS);
    CString strButtonText = "Something...";
    TBBUTTONINFO tbbi;
    tbbi.cbSize = sizeof(tbbi);...
  9. Replies
    12
    Views
    12,585

    Re: Toolbar button sizes

    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...
  10. Replies
    12
    Views
    12,585

    Re: Toolbar button sizes

    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...
  11. Replies
    12
    Views
    12,585

    Re: Toolbar button sizes

    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?...
  12. Replies
    12
    Views
    12,585

    Re: Toolbar button sizes

    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.
  13. Replies
    12
    Views
    12,585

    Toolbar button sizes

    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...
  14. Re: Docking toolbars side by side in an MDIChildFrame

    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?
  15. Re: Docking toolbars side by side in an MDIChildFrame

    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.
  16. Re: Docking toolbars side by side in an MDIChildFrame

    Ok, that's a glaring mistake, but it shouldn't be the cause of the problem though, should it?
  17. Re: Docking toolbars side by side in an MDIChildFrame

    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.
  18. Re: Docking toolbars side by side in an MDIChildFrame

    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...
  19. Re: Docking toolbars side by side in an MDIChildFrame

    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.
  20. Docking toolbars side by side in an MDIChildFrame

    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...
  21. Replies
    2
    Views
    6,999

    Change Size of Standard Icon

    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...
  22. Replies
    1
    Views
    2,616

    OnNotify Not Called

    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:
    ...
  23. Replies
    4
    Views
    2,050

    Re: Using SetTimer in OnMouseMove

    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...
  24. Replies
    4
    Views
    2,050

    Using SetTimer in OnMouseMove

    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...
  25. Replies
    1
    Views
    1,216

    Tracking Tooltip Problems

    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...
Results 1 to 25 of 29
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured