Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
C

Craig Hewitt

@Craig Hewitt
About
Posts
2
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Add button to vertical toolbar embedded in CPagerCtrl embedded in CDockingPane attached to CFrameWndEx
    C Craig Hewitt

    Hello everyone, I have a weird situation...I have a CToolBar that has a parent of a CPagerCtrl which has a parent of a CDockingPane. Why I developed it that was is a long story and changing the architecture is not really an option at this point. Everything is working quite well except for one problem behavior. And this wouldn't have been a problem had the requirements not changed. The problem behavior is that initially the toolbar has 9 buttons, but before it is shown I remove some of them depending on the options enabled. Depending on the state of the application at a particular time I may add buttons back. The toolbar does not reflect the change. In the past I would have just called RecalcLayout() on the frame window and voila, the toolbar would adjust it's size to properly reflect the new buttons. I am at a loss on how to accomplish this with this architecture. I have tried many things...so many I can't remember them right now. Any ideas/help would be greatly appreciated. I will post any code upon request. I am just not sure what is of value right now. Thanks, Craig

    C / C++ / MFC help hardware business architecture tutorial

  • Tool tips on Status bar created on a dialog
    C Craig Hewitt

    Hello All! I have been tasked with writing a dialog based application that must include a menu, tool bar and status bar. Being CFormView based is not an option. I have everything working beautifully except 2 items: 1. Tool tips do not display correctly on the status bar panes. 2. I need to resize the dialog once the tool bar or status bar are turned off. I only need help with #1 as I have not even worked on #2 yet. I have a normal CStatusBar derived from a class described here: http://msdn.microsoft.com/en-us/library/ccstww6w(v=vs.71).aspx[^] The dialog has a base class as described here: http://msdn.microsoft.com/en-us/library/ccstww6w(v=vs.80).aspx[^] What happens when hovering over any of the status bar panes is you get a tool tip centered horizontally over the status bar that simply says "Toggle Status Bar". I am seeing the TTN_NEEDTEXT message fire with control ID 59393 which is AFX_IDW_STATUS_BAR. All of the update commands, tool tips and message strings work for the menus and tool bars as well as the update handlers for the status bar, it is just the tool tips for the status bar that do not work. Any help is greatly appreciated. Craig

    C / C++ / MFC visual-studio com help announcement
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups