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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. setting dialog size at run time

setting dialog size at run time

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialquestion
4 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.
  • S Offline
    S Offline
    swaapu
    wrote on last edited by
    #1

    Hi!! I m working on an mfc sdi application. I hav a dialog in which , i have "SHOW FILE" button. On it`s click event, i want to show the file on the same dialog. But, before clicking the "SHOW FILE" button, i want a small dialog only. Now, I hav two problems: 1. In which control, should I display(show) the file to the user? 2. How to set the dialog size at run time? Thanx a lot "If you change then change for the good."

    _ 1 Reply Last reply
    0
    • S swaapu

      Hi!! I m working on an mfc sdi application. I hav a dialog in which , i have "SHOW FILE" button. On it`s click event, i want to show the file on the same dialog. But, before clicking the "SHOW FILE" button, i want a small dialog only. Now, I hav two problems: 1. In which control, should I display(show) the file to the user? 2. How to set the dialog size at run time? Thanx a lot "If you change then change for the good."

      _ Offline
      _ Offline
      _anil_
      wrote on last edited by
      #2

      ABout your first question which type of file do you want to display? image file, text file, HTML file.... for changing the dialog box size... MoveWindow() SetWindowPos() ...

      S 1 Reply Last reply
      0
      • _ _anil_

        ABout your first question which type of file do you want to display? image file, text file, HTML file.... for changing the dialog box size... MoveWindow() SetWindowPos() ...

        S Offline
        S Offline
        swaapu
        wrote on last edited by
        #3

        Hello!! I want to display text file. Thanx a lot "If you change then change for the good."

        _ 1 Reply Last reply
        0
        • S swaapu

          Hello!! I want to display text file. Thanx a lot "If you change then change for the good."

          _ Offline
          _ Offline
          _anil_
          wrote on last edited by
          #4

          Hello For Text File you can use CEdit Control with Multiline option set. Or if your file size is large and you want some extra thigs to display like changing the colour of text ... you car use RichEditControl. Regards Anil

          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