Click here to Skip to main content
15,908,906 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Application Icon Pin
Shog918-Nov-02 7:49
sitebuilderShog918-Nov-02 7:49 
GeneralRe: Application Icon Pin
carpediem18-Nov-02 12:57
carpediem18-Nov-02 12:57 
GeneralRe: Application Icon Pin
Shog918-Nov-02 13:09
sitebuilderShog918-Nov-02 13:09 
GeneralRe: Application Icon Pin
Al_Pennyworth18-Nov-02 13:14
Al_Pennyworth18-Nov-02 13:14 
GeneralRe: Application Icon Pin
Shog918-Nov-02 13:23
sitebuilderShog918-Nov-02 13:23 
GeneralRe: Application Icon Pin
carpediem18-Nov-02 13:35
carpediem18-Nov-02 13:35 
GeneralRe: Application Icon Pin
Shog918-Nov-02 17:32
sitebuilderShog918-Nov-02 17:32 
GeneralRe: Application Icon Pin
carpediem19-Nov-02 7:16
carpediem19-Nov-02 7:16 
I have researched all of the items that you suggested. The biggest problem is not being able to post the code so you can see exactly what is happening. In a nutshell, it was described to me is that what happens is that the bitmap is read in and when we need to place a button's bitmap on the toolbar, we pass in the resource id of the button and the position the image is in on the bitmap. Basically, we have one bitmap file that contains about 40 images. When adding a button, we pass in the position the image is in and there is some code that I do not have access to that handles applying it. So, I tried to implement most of your suggestions. I called ExtractIcon to get the handle to the icon from the .exe file the user might choose, I created the ImageList, I called the AddIcon to add it. Here is gets a little sticky. From here, I call GetImageInfo to get the bitmap handle, then I tried to use the bitmap handle to apply the bitmap to the button. It doesn't work when I do this. What happens is that there is a function that does a CreateCompatibleDC, then does a GetObject with the handle to the bitmap, then does a SelectObject, if the SelectObject returns good, it does a BitBlt. The problem I have discovered is that the SelectObject returns 0x00000000 every time. The bitmaps placed on the toolbar the old way use LoadImage to get the bitmap handle. I use the GetImageInfo. But, in the end, it doesn't work. My biggest handicaps are I don't have access to all the code and I am forced to leave the way the other buttons are placed on the toolbars, I was told not to change that code. Am I screwed or what?????
GeneralRe: Application Icon Pin
Shog919-Nov-02 7:28
sitebuilderShog919-Nov-02 7:28 
GeneralShould be an easy question.. Splitter Pin
RobJones18-Nov-02 5:45
RobJones18-Nov-02 5:45 
GeneralRe: Should be an easy question.. Splitter Pin
Georgi Atanasov18-Nov-02 6:55
Georgi Atanasov18-Nov-02 6:55 
GeneralRe: Should be an easy question.. Splitter Pin
Georgi Atanasov18-Nov-02 7:04
Georgi Atanasov18-Nov-02 7:04 
GeneralRe: Should be an easy question.. Splitter Pin
Gary R. Wheeler18-Nov-02 15:28
Gary R. Wheeler18-Nov-02 15:28 
Questionhow to read a DWORD value from registry Pin
SAK18-Nov-02 5:32
SAK18-Nov-02 5:32 
AnswerRe: how to read a DWORD value from registry Pin
Jason Henderson18-Nov-02 5:39
Jason Henderson18-Nov-02 5:39 
GeneralRe: how to read a DWORD value from registry Pin
Jason Henderson18-Nov-02 5:40
Jason Henderson18-Nov-02 5:40 
AnswerRe: how to read a DWORD value from registry Pin
Alvaro Mendez18-Nov-02 5:44
Alvaro Mendez18-Nov-02 5:44 
Generalfile processing Pin
MikeDeming18-Nov-02 5:06
MikeDeming18-Nov-02 5:06 
GeneralRe: file processing Pin
Alexandru Savescu18-Nov-02 5:08
Alexandru Savescu18-Nov-02 5:08 
GeneralRe: file processing Pin
Nick Parker18-Nov-02 5:33
protectorNick Parker18-Nov-02 5:33 
GeneralRe: file processing Pin
Joaquín M López Muñoz18-Nov-02 9:35
Joaquín M López Muñoz18-Nov-02 9:35 
GeneralRe: file processing Pin
Ravi Bhavnani18-Nov-02 7:06
professionalRavi Bhavnani18-Nov-02 7:06 
GeneralRe: file processing Pin
MikeDeming18-Nov-02 8:12
MikeDeming18-Nov-02 8:12 
GeneralRe: file processing Pin
Ravi Bhavnani18-Nov-02 8:58
professionalRavi Bhavnani18-Nov-02 8:58 
GeneralFreelibrary hangs my application Pin
Alexandru Savescu18-Nov-02 4:46
Alexandru Savescu18-Nov-02 4:46 

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.