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. begginner with MFC

begginner with MFC

Scheduled Pinned Locked Moved C / C++ / MFC
c++question
4 Posts 3 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    How do you add the current date on to the project using COleDateTime? And where do you add the code? Nicole

    C 1 Reply Last reply
    0
    • L Lost User

      How do you add the current date on to the project using COleDateTime? And where do you add the code? Nicole

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Where do you want to add the date ? In your about box ? The menu bar ? GetSystemTime will give you the info you need, COleDateTime has a constructor that takes this info if you *need* this object for some other reason and what you do with it depends on what you want to do with it. Christian #include "std_disclaimer.h" People who love sausage and respect the law should never watch either one being made. The things that come to those who wait are usually the things left by those who got there first.

      D 1 Reply Last reply
      0
      • C Christian Graus

        Where do you want to add the date ? In your about box ? The menu bar ? GetSystemTime will give you the info you need, COleDateTime has a constructor that takes this info if you *need* this object for some other reason and what you do with it depends on what you want to do with it. Christian #include "std_disclaimer.h" People who love sausage and respect the law should never watch either one being made. The things that come to those who wait are usually the things left by those who got there first.

        D Offline
        D Offline
        Drake Elsari
        wrote on last edited by
        #3

        Well, thats kinda what I meant, it's close. But I really meant how to draw that stuff on there. And I don't wanna just use the windows frame components I wanna make my own version of them and then paint them on the Frame window.

        C 1 Reply Last reply
        0
        • D Drake Elsari

          Well, thats kinda what I meant, it's close. But I really meant how to draw that stuff on there. And I don't wanna just use the windows frame components I wanna make my own version of them and then paint them on the Frame window.

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          Ah - so you're not really that interested in the date, you want to draw your own window frame ? WM_NCPAINT is the message you want to catch - it indicates you want to paint the non-client area of a window (i.e. the frame). Christian #include "std_disclaimer.h" People who love sausage and respect the law should never watch either one being made. The things that come to those who wait are usually the things left by those who got there first.

          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