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
D

Daredevil

@Daredevil
About
Posts
2
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Transparent icons on a toolbar buttons
    D Daredevil

    Hello I am using 256 color icons for my toolbar, however each of the icons has a white (or light grey) background which is ugly. How is it possible to make the icons transparent on any windows theme? Thanks in advance.

    C / C++ / MFC question

  • Retrieving control's original class by its ID?
    D Daredevil

    Hello, In my program I dynamically create controls according to data read from a database. The control can be either CEdit or CComboBox. I also assign a unique control ID to each of the created controls (I know the ids). Once controls created when a button pressed it's supposed to save controls values in the database. Getting the text from the CEdit control isn't a problem as I just do GetDlgItemText(...). However, in case of the CComboBox I need to retrieve the ItemData using GetItemData. This is where I'm unsure of what to do. I don't save anywhere if control with specific ID is a CComboBox or CEdit. Is is possible to know only by ID what kind of a control it is and to retrieve its original class?. I was thinking just to make a struct: struct { CEdit *edit=NULL; CComboBox *combo=NULL; } myDynControls; and then make an array of this struct. Each coresponding to an ID. I won't have more than 10 controls at a time. What do you think? Is it a good idea? (i will delete everything after done working with ofcourse :))

    C / C++ / MFC database data-structures help question discussion
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups