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. Run time validation in .RC file in VC++ Mfc application

Run time validation in .RC file in VC++ Mfc application

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

    Hello All, Please help out me. I have enable Arrow Key functionality in MFC application,Now some where i required that if i clicked the checkbox then after Arrow key should not be enable. Now i required the condition need to be in .rc file not in .cpp file . I tried " #if(false) #endif " but how i need to provide condition inside into IF() and how it will work at runtime when i will change the condition.

    J 1 Reply Last reply
    0
    • R rajmohanpatel

      Hello All, Please help out me. I have enable Arrow Key functionality in MFC application,Now some where i required that if i clicked the checkbox then after Arrow key should not be enable. Now i required the condition need to be in .rc file not in .cpp file . I tried " #if(false) #endif " but how i need to provide condition inside into IF() and how it will work at runtime when i will change the condition.

      J Offline
      J Offline
      Jochen Arndt
      wrote on last edited by
      #2

      The arrow keys allow moving from one check box to another. If you don't want this behaviour use the resource editor to set the group property of the corresponding check boxes and the following control in the tab order. If you want to use conditions within the RC file you have to pass them using build options because the definitions used when compiling are not passed when processing RC files. Similar has just been asked a few threads below: #ifdef...#endif is not working in Resource(.rc) file - C / C++ / MFC Discussion Boards[^] See this answer: Re: #ifdef...#endif is not working in Resource(.rc) file - C / C++ / MFC Discussion Boards[^]

      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