Click here to Skip to main content
16,019,278 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to get a scroll window's size? Pin
Michael ZY21-Feb-07 14:11
Michael ZY21-Feb-07 14:11 
AnswerRe: how to get a scroll window's size? Pin
Mark Salsbery21-Feb-07 14:31
Mark Salsbery21-Feb-07 14:31 
Questionerror C2451 Pin
Waldermort21-Feb-07 13:10
Waldermort21-Feb-07 13:10 
AnswerRe: error C2451 Pin
Stephen Hewitt21-Feb-07 13:50
Stephen Hewitt21-Feb-07 13:50 
GeneralRe: error C2451 Pin
Waldermort21-Feb-07 14:13
Waldermort21-Feb-07 14:13 
QuestionCListCtrl::InsertColumn & DeleteColumn [modified] Pin
deposit21-Feb-07 13:00
deposit21-Feb-07 13:00 
QuestionAccessing GIF color table Pin
jak10278921-Feb-07 12:06
jak10278921-Feb-07 12:06 
AnswerRe: Accessing GIF color table Pin
Mark Salsbery21-Feb-07 15:31
Mark Salsbery21-Feb-07 15:31 
The easiest way I know of is to use GDI+.

If you load the GIF as a GDI+ Bitmap object then you can use:
1) GetPalette()/SetPalette() to read/write the color table
2) LockBits()/UnlockBits() to access the pixel data to change pixels to index the appropriate
entries in the new color table.
3) Save() to save the new image.

With C# you can use the .NET GDI+ wrapper classes (System.Drawing.Bitmap) I believe.
Then you don't have to use C++.

Mark





"Do you know what it's like to fall in the mud and get kicked... in the head... with an iron boot?
Of course you don't, no one does. It never happens. It's a dumb question... skip it."

Questionneed some help in using property sheets [modified] Pin
l_d21-Feb-07 8:16
l_d21-Feb-07 8:16 
AnswerRe: need some help in using property sheets Pin
James R. Twine21-Feb-07 8:41
James R. Twine21-Feb-07 8:41 
GeneralRe: need some help in using property sheets Pin
l_d22-Feb-07 8:25
l_d22-Feb-07 8:25 
Questiondesktop rect Pin
viliam21-Feb-07 8:01
viliam21-Feb-07 8:01 
AnswerRe: desktop rect Pin
Mark Salsbery21-Feb-07 8:13
Mark Salsbery21-Feb-07 8:13 
GeneralRe: desktop rect Pin
viliam21-Feb-07 8:19
viliam21-Feb-07 8:19 
Questionvc++ XLAutomation error Pin
rolfhorror21-Feb-07 7:49
rolfhorror21-Feb-07 7:49 
AnswerRe: vc++ XLAutomation error Pin
Stephen Hewitt21-Feb-07 11:59
Stephen Hewitt21-Feb-07 11:59 
QuestionRemoving an ugly border Pin
dontknowitall21-Feb-07 6:37
dontknowitall21-Feb-07 6:37 
AnswerRe: Removing an ugly border Pin
Mark Salsbery21-Feb-07 7:30
Mark Salsbery21-Feb-07 7:30 
GeneralRe: Removing an ugly border Pin
dontknowitall21-Feb-07 7:38
dontknowitall21-Feb-07 7:38 
GeneralRe: Removing an ugly border Pin
Mark Salsbery21-Feb-07 7:46
Mark Salsbery21-Feb-07 7:46 
GeneralRe: Removing an ugly border Pin
dontknowitall21-Feb-07 9:15
dontknowitall21-Feb-07 9:15 
GeneralRe: Removing an ugly border Pin
Mark Salsbery21-Feb-07 9:50
Mark Salsbery21-Feb-07 9:50 
AnswerRe: Removing an ugly border Pin
PJ Arends21-Feb-07 9:21
professionalPJ Arends21-Feb-07 9:21 
GeneralRe: Removing an ugly border Pin
dontknowitall21-Feb-07 9:42
dontknowitall21-Feb-07 9:42 
QuestionRe: Removing an ugly border Pin
Mark Salsbery21-Feb-07 10:06
Mark Salsbery21-Feb-07 10:06 

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.