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. Please give me help.

Please give me help.

Scheduled Pinned Locked Moved C / C++ / MFC
databasehelpquestion
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
    LoveInSnowing
    wrote on last edited by
    #1

    I write a program which used database and use Multi View in splitter window, when I switch the view,I must check if the database is empty first.If so, how can I show a message,such as the database is empty ..

    R 1 Reply Last reply
    0
    • L LoveInSnowing

      I write a program which used database and use Multi View in splitter window, when I switch the view,I must check if the database is empty first.If so, how can I show a message,such as the database is empty ..

      R Offline
      R Offline
      Rashid Thadha
      wrote on last edited by
      #2

      How about .... AfxMessageBox("The Database is empty"); Some how, I don't think this is the answer you want, but thats how I read it

      L 1 Reply Last reply
      0
      • R Rashid Thadha

        How about .... AfxMessageBox("The Database is empty"); Some how, I don't think this is the answer you want, but thats how I read it

        L Offline
        L Offline
        LoveInSnowing
        wrote on last edited by
        #3

        When should I show this message when I switch the view?

        M 1 Reply Last reply
        0
        • L LoveInSnowing

          When should I show this message when I switch the view?

          M Offline
          M Offline
          Martin Bohring
          wrote on last edited by
          #4

          What about showing it when the view gets the focus ? Or better showing it directly in the view. And disabeling any edit buttons handled by the view. In general ist much better to disable operations not possible at the moment, instead of popping up message boxes all over the app. The user hates to click them away and doesn't read the text in the message box (Most usrers I know of)

          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