Click here to Skip to main content
15,900,511 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Custom buttons in title bar Pin
Tommy H D Svensson22-Aug-01 0:53
Tommy H D Svensson22-Aug-01 0:53 
QuestionCComboBox resize list part of control??? Pin
21-Aug-01 19:20
suss21-Aug-01 19:20 
AnswerRe: CComboBox resize list part of control??? Pin
Andreas Saurwein22-Aug-01 13:32
Andreas Saurwein22-Aug-01 13:32 
QuestionWindows' program porting to Macintosh? Pin
hardhorse21-Aug-01 18:39
hardhorse21-Aug-01 18:39 
QuestionHow to transfer OLE Item? Pin
haozl21-Aug-01 17:40
haozl21-Aug-01 17:40 
Questionwhat is this infomation meaning when debuging? Pin
Sandos Ganzales21-Aug-01 17:38
Sandos Ganzales21-Aug-01 17:38 
AnswerRe: what is this infomation meaning when debuging? Pin
Orbital^21-Aug-01 19:51
Orbital^21-Aug-01 19:51 
GeneralComparing 2 colors similarity Pin
Wolfram Steinke21-Aug-01 16:06
Wolfram Steinke21-Aug-01 16:06 
I am trying to compare 2 colours having the COLORREF value, and specifying a tolerance, to decide if a pen of color 1 will be different enough to be visible if drawn on a background color 2.

Do you know of a reference where I my be able find information about this. I thought about using variation of the algorithm I have for finding the nearest color from a palette. However it is not working for me in trying to work out a reasonable value for 'dist' in the code below.

int blue = (GetRValue(dwColor) - GetRValue(sE->seRGB));
blue *= blue;
int green = (GetGValue(dwColor) - GetGValue(sE->seRGB));
green *= green;
int red = (GetBValue(dwColor) - GetBValue(sE->seRGB));
red *= red;
int dist = red + green + blue;


Happy programming!!
GeneralRe: Comparing 2 colors similarity Pin
Christian Graus21-Aug-01 16:17
protectorChristian Graus21-Aug-01 16:17 
GeneralRe: Comparing 2 colors similarity Pin
Wolfram Steinke21-Aug-01 17:21
Wolfram Steinke21-Aug-01 17:21 
GeneralRe: Comparing 2 colors similarity Pin
Christian Graus22-Aug-01 1:56
protectorChristian Graus22-Aug-01 1:56 
GeneralRe: Comparing 2 colors similarity Pin
Wolfram Steinke22-Aug-01 2:09
Wolfram Steinke22-Aug-01 2:09 
GeneralRe: Comparing 2 colors similarity Pin
Christian Graus22-Aug-01 2:57
protectorChristian Graus22-Aug-01 2:57 
GeneralRe: Comparing 2 colors similarity Pin
Tomasz Sowinski22-Aug-01 0:02
Tomasz Sowinski22-Aug-01 0:02 
GeneralRe: Comparing 2 colors similarity Pin
Christian Graus22-Aug-01 1:52
protectorChristian Graus22-Aug-01 1:52 
GeneralOpening HTML with Default browser Pin
21-Aug-01 15:53
suss21-Aug-01 15:53 
GeneralRe: Opening HTML with Default browser Pin
Christian Graus21-Aug-01 16:18
protectorChristian Graus21-Aug-01 16:18 
QuestionHow to get Windows NT Server Information Pin
Saif ur Rehman21-Aug-01 15:16
Saif ur Rehman21-Aug-01 15:16 
AnswerRe: How to get Windows NT Server Information Pin
Stan Shannon22-Aug-01 1:55
Stan Shannon22-Aug-01 1:55 
QuestionHow to get Windows NT Server Information Pin
Saif ur Rehman21-Aug-01 15:10
Saif ur Rehman21-Aug-01 15:10 
GeneralIcon question Pin
21-Aug-01 13:11
suss21-Aug-01 13:11 
GeneralRe: Icon question Pin
Derek Waters21-Aug-01 13:17
Derek Waters21-Aug-01 13:17 
GeneralEmbeded scripting language options Pin
Matt Weagle21-Aug-01 12:04
Matt Weagle21-Aug-01 12:04 
GeneralRe: Embeded scripting language options Pin
Christian Graus21-Aug-01 12:26
protectorChristian Graus21-Aug-01 12:26 
GeneralRe: Embeded scripting language options Pin
Matt Weagle21-Aug-01 13:34
Matt Weagle21-Aug-01 13: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.