CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Toolbar height

  1. #1
    Join Date
    May 1999
    Posts
    19

    Toolbar height

    ppl how can i get the height of toolbar??
    what is the right way?
    thanks


  2. #2
    Join Date
    May 1999
    Location
    Republic of Korea
    Posts
    74

    Re: Toolbar height

    If you had created your project using AppWizard, you may have a pointer to the toolbar,
    generally in CMainFrame class. With that m_wndToolBar, call GetWindowRect function as follows.

    CRect rect;
    m_wndToolBar.GetWindowRect(&rect);

    int height = rect.Height();



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured