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. Delete Scrollbar

Delete Scrollbar

Scheduled Pinned Locked Moved C / C++ / MFC
help
2 Posts 2 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.
  • G Offline
    G Offline
    gmlnd
    wrote on last edited by
    #1

    I am trying to hide the scrollbars in my FormView pages. void CAnonWasherView::OnInitialUpdate() { CView::OnInitialUpdate(); SIZE se; se.cx=0; se.cy=0; CFormView::SetScaleToFitSize(se); } But I get the following error: 'CScrollView::SetScaleToFitSize' illegal call of non-static member function I don't know what I am doing wrong.

    C 1 Reply Last reply
    0
    • G gmlnd

      I am trying to hide the scrollbars in my FormView pages. void CAnonWasherView::OnInitialUpdate() { CView::OnInitialUpdate(); SIZE se; se.cx=0; se.cy=0; CFormView::SetScaleToFitSize(se); } But I get the following error: 'CScrollView::SetScaleToFitSize' illegal call of non-static member function I don't know what I am doing wrong.

      C Offline
      C Offline
      Chris Losinger
      wrote on last edited by
      #2

      1. a CScrollView is not a CFormView. 2. SetScaleToFitSize is a CScrollView member function. 3. you can't call non-static member functions of a class unless you: a. have an instance of that class or b. are in a member function of that class sizing CFormViews is not simple, but there is code on this site that can help you. look in the Doc / View section or the Dialog section (since a CFormView is a hybrid of a dialog and a view) -c

      Chris Losinger
      Smaller Animals Software

      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