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. 'ICC_STANDARD_CLASSES' : undeclared identifier

'ICC_STANDARD_CLASSES' : undeclared identifier

Scheduled Pinned Locked Moved C / C++ / MFC
help
3 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.
  • S Offline
    S Offline
    stolid_rock
    wrote on last edited by
    #1

    Hi I am using a rih edit control in my SDK app. So when i was executing the app i got the "Cannot find window class" error when i tried to call CreateDialog(..). So i did the following INITCOMMONCONTROLSEX init; memset(&init, 0, sizeof(init)); init.dwSize = sizeof(INITCOMMONCONTROLSEX); init.dwICC = ICC_STANDARD_CLASSES; InitCommonControlsEx(&init); Now i get an error that 'ICC_STANDARD_CLASSES' : undeclared identifier even when commctrl.h and comctl32.lib are properly used.

    D M 2 Replies Last reply
    0
    • S stolid_rock

      Hi I am using a rih edit control in my SDK app. So when i was executing the app i got the "Cannot find window class" error when i tried to call CreateDialog(..). So i did the following INITCOMMONCONTROLSEX init; memset(&init, 0, sizeof(init)); init.dwSize = sizeof(INITCOMMONCONTROLSEX); init.dwICC = ICC_STANDARD_CLASSES; InitCommonControlsEx(&init); Now i get an error that 'ICC_STANDARD_CLASSES' : undeclared identifier even when commctrl.h and comctl32.lib are properly used.

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Per MSDN, ICC_STANDARD_CLASSES is not a valid option. Prior to creating the control, I think you might need to call LoadLibrary("riched20.dll").


      "Ideas are a dime a dozen. People who put them into action are priceless." - Unknown

      1 Reply Last reply
      0
      • S stolid_rock

        Hi I am using a rih edit control in my SDK app. So when i was executing the app i got the "Cannot find window class" error when i tried to call CreateDialog(..). So i did the following INITCOMMONCONTROLSEX init; memset(&init, 0, sizeof(init)); init.dwSize = sizeof(INITCOMMONCONTROLSEX); init.dwICC = ICC_STANDARD_CLASSES; InitCommonControlsEx(&init); Now i get an error that 'ICC_STANDARD_CLASSES' : undeclared identifier even when commctrl.h and comctl32.lib are properly used.

        M Offline
        M Offline
        Michael Dunn
        wrote on last edited by
        #3

        The rich edit control is initialized differently than other controls. You need to load either riched32.dll or riched20.dll in your app's init code, depending on which rich edit version you need. --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ Strange things are afoot at the U+004B U+20DD

        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