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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Problem with a property sheet

Problem with a property sheet

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorialquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Artem Moroz
    wrote on last edited by
    #1

    I have a problem with a property sheet I am creating property sheet insde a dialog this way: BOOL CMyDlg::OnInitDialog() { CDialog::OnInitDialog(); m_propsheet.Create(this, WS_CHILD | WS_VISIBLE, 0); m_propsheet.ModifyStyleEx (0, WS_EX_CONTROLPARENT); m_propsheet.ModifyStyle(0, WS_TABSTOP); m_propsheet.GetTabControl()->ModifyStyle(TCS_MULTILINE,0); CRect rcSheet; GetDlgItem(IDC_PROPSHEET)->GetWindowRect( &rcSheet ); ScreenToClient( &rcSheet ); m_propsheet.SetWindowPos( NULL, rcSheet.left-7, rcSheet.top-7, 0, 0, SWP_NOZORDER | SWP_NOSIZE | SWP_NOACTIVATE ); . . . } In this code I tried to change the style of tab control inside a property sheet, so it would display one row of tabs. It works, but the size of property sheet retains bigger, just like with two rows of tabs, How to fix this ?

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

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