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.
Daredevil
Posts
-
Transparent icons on a toolbar buttons -
Retrieving control's original class by its ID?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 :))