Click here to Skip to main content
16,013,605 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Message Queue and Threads Pin
wilche30-May-02 13:48
wilche30-May-02 13:48 
GeneralPassing Pointer Between DLL & App Pin
29-May-02 17:08
suss29-May-02 17:08 
GeneralRe: Passing Pointer Between DLL & App Pin
Joaquín M López Muñoz29-May-02 19:47
Joaquín M López Muñoz29-May-02 19:47 
GeneralRe: Passing Pointer Between DLL & App Pin
29-May-02 21:09
suss29-May-02 21:09 
GeneralRe: Passing Pointer Between DLL & App Pin
29-May-02 21:14
suss29-May-02 21:14 
GeneralRe: Passing Pointer Between DLL & App Pin
29-May-02 21:35
suss29-May-02 21:35 
GeneralWho Pin
chen29-May-02 17:13
chen29-May-02 17:13 
GeneralIE Standard Buttons 'dithering' Pin
Tim Deveaux29-May-02 13:47
Tim Deveaux29-May-02 13:47 
This one has me a bit stumped.

I used Erik T's excellent ATL object wizard and tutorial articles to make a toolbar (like the CP toolbar), and I have added a button to the Standard Buttons bar of Explorer which pops the toolbar on and off. Works fine...

...except for one sniggly little feature.

The docs tell you to create two icon files or resources - one with 16 (16c) and 20(256c) bit gray images, and one with like sized 'hot' or color images. Ok sure fine. When IE loads, it checks whether its set to display small or large icons and gets the right ones to use for the SB bar button.

The problem arises when the user selects 'Customize' and changes from small icons to large or vv. The gray icon gets selected ok, but the color one becomes a 'dithered' (for lack of a better term) version of the one currently being shown. This can really mess up the quality of the hot image, until the user either goes back to the icon size in force when IE loaded or reloads IE.

I've noticed another quirk that can happen when a control specifies a single icon resource/file, or the one loaded previous (listed prior in the reg settings) has only one or the wrong icons - the icon for one can appear in the standard button for the other! This leads me to suspect that there is some image list indexing going on, but haven't gotten far on that track.

Toolbars like Google and CP avoid this aspect of adding to the Standard Buttons bar. If I could find a sample that did this correctly, that would help - or even find the IE icons in .ico or resource form, though I'm not sure they exist as such.

Has anyone any insight here? I realize its not a show stopper, but its dang annoying.

Any hot leads, musings, or even sentences starting with 'ya know I think I once...' and/or ending with '...can't for the life of me remember where' will be muchly appreciated.
GeneralRe: IE Standard Buttons 'dithering' Pin
Shog929-May-02 15:05
sitebuilderShog929-May-02 15:05 
GeneralRe: IE Standard Buttons 'dithering' Pin
Tim Deveaux30-May-02 4:01
Tim Deveaux30-May-02 4:01 
GeneralRe: IE Standard Buttons 'dithering' Pin
Michael Dunn29-May-02 17:48
sitebuilderMichael Dunn29-May-02 17:48 
GeneralRe: IE Standard Buttons 'dithering' Pin
Tim Deveaux30-May-02 3:59
Tim Deveaux30-May-02 3:59 
Generalpointer to an array... "char" Pin
SilverShalkin29-May-02 13:45
SilverShalkin29-May-02 13:45 
GeneralRe: pointer to an array... "char" Pin
soptest29-May-02 13:57
soptest29-May-02 13:57 
GeneralRe: pointer to an array... "char" Pin
Christian Graus29-May-02 14:37
protectorChristian Graus29-May-02 14:37 
GeneralRe: pointer to an array... "char" Pin
Nish Nishant29-May-02 14:56
sitebuilderNish Nishant29-May-02 14:56 
GeneralRe: pointer to an array... "char" Pin
Christian Graus29-May-02 15:16
protectorChristian Graus29-May-02 15:16 
GeneralRe: pointer to an array... "char" Pin
Nish Nishant29-May-02 15:27
sitebuilderNish Nishant29-May-02 15:27 
GeneralRe: pointer to an array... "char" Pin
Christian Graus29-May-02 15:48
protectorChristian Graus29-May-02 15:48 
GeneralRe: pointer to an array... "char" Pin
Orbital^29-May-02 21:19
Orbital^29-May-02 21:19 
GeneralRe: pointer to an array... "char" Pin
SilverShalkin30-May-02 2:38
SilverShalkin30-May-02 2:38 
GeneralFlexGrid Sort Pin
29-May-02 13:31
suss29-May-02 13:31 
GeneralRe: FlexGrid Sort Pin
Christian Graus29-May-02 15:09
protectorChristian Graus29-May-02 15:09 
GeneralRe: FlexGrid Sort Pin
29-May-02 15:38
suss29-May-02 15:38 
GeneralCreate form controls at runtime Pin
Aaron Schaefer29-May-02 12:55
Aaron Schaefer29-May-02 12:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.