Click here to Skip to main content
15,885,032 members
Home / Discussions / C#
   

C#

 
GeneralRe: Using Word with C# Pin
Stephane David3-Jan-04 19:00
Stephane David3-Jan-04 19:00 
GeneralRe: Using Word with C# Pin
Heath Stewart3-Jan-04 19:02
protectorHeath Stewart3-Jan-04 19:02 
GeneralRe: Using Word with C# Pin
Stephane David3-Jan-04 19:40
Stephane David3-Jan-04 19:40 
GeneralRe: Using Word with C# Pin
Heath Stewart3-Jan-04 19:42
protectorHeath Stewart3-Jan-04 19:42 
GeneralRe: Using Word with C# Pin
Stephane David3-Jan-04 19:49
Stephane David3-Jan-04 19:49 
GeneralRe: Using Word with C# Pin
Stephane David8-Jan-04 11:04
Stephane David8-Jan-04 11:04 
GeneralDisabled toolbar images Pin
richjm3-Jan-04 2:47
richjm3-Jan-04 2:47 
GeneralRe: Disabled toolbar images Pin
Heath Stewart3-Jan-04 7:38
protectorHeath Stewart3-Jan-04 7:38 
You could always make a second set of icons to add to your image list that are offset by the length of the original images (so you can simply shift the image index by the number of colored images). You'll have to extend the ToolBar class, however, in order to draw the buttons using those images, most likely having to override WndProc since the ToolBar control is just a wrapper to the Windows Common Control's Toolbar class. Messages are sent/posted and notification messages are handled. You'll have to do the same.

To see what's happening behind the scenes with the class, you should get yourself a good decompiler like .NET Reflector[^]. Understanding the Windows Messaging system and the Win32 APIs is necessary.

There are also ways to convert a colored image to gray scale, but you'll still have to extend ToolBar to do so. There's a good one in a great series by Christian Graus here on CP, Image Processing for Dummies with C# and GDI+ Part 1 - Per Pixel Filters[^]. There is a b/w conversion algorithm mentioned in there and in his source code.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
Questionstart menu? Pin
warelord3-Jan-04 0:22
warelord3-Jan-04 0:22 
AnswerRe: start menu? Pin
leppie3-Jan-04 1:37
leppie3-Jan-04 1:37 
AnswerRe: start menu? Pin
Jan R Hansen3-Jan-04 1:37
Jan R Hansen3-Jan-04 1:37 
AnswerRe: start menu? Pin
Steve McLenithan3-Jan-04 6:50
Steve McLenithan3-Jan-04 6:50 
AnswerRe: start menu? Pin
Heath Stewart3-Jan-04 7:21
protectorHeath Stewart3-Jan-04 7:21 
GeneralSkins Pin
Agent 862-Jan-04 12:18
Agent 862-Jan-04 12:18 
GeneralRe: Skins Pin
Heath Stewart2-Jan-04 19:38
protectorHeath Stewart2-Jan-04 19:38 
GeneralRe: Skins Pin
Agent 862-Jan-04 20:06
Agent 862-Jan-04 20:06 
GeneralRe: Skins Pin
J. Dunlap2-Jan-04 20:34
J. Dunlap2-Jan-04 20:34 
GeneralRe: Skins Pin
Agent 863-Jan-04 5:22
Agent 863-Jan-04 5:22 
GeneralRe: Skins Pin
J. Dunlap3-Jan-04 17:16
J. Dunlap3-Jan-04 17:16 
GeneralImage on an MDI form Pin
Agent 862-Jan-04 12:08
Agent 862-Jan-04 12:08 
GeneralRe: Image on an MDI form Pin
Mazdak2-Jan-04 18:45
Mazdak2-Jan-04 18:45 
GeneralRe: Image on an MDI form Pin
Agent 862-Jan-04 19:43
Agent 862-Jan-04 19:43 
GeneralRe: Image on an MDI form Pin
Robert Schols6-Jan-04 22:03
Robert Schols6-Jan-04 22:03 
GeneralRe: Image on an MDI form Pin
Robert Schols7-Jan-04 10:49
Robert Schols7-Jan-04 10:49 
GeneralRe: Image on an MDI form Pin
Agent 8611-Jan-04 18:34
Agent 8611-Jan-04 18:34 

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.