Click here to Skip to main content
15,921,113 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: modeless dialog WM_CLOSE - opinion Pin
Shog916-Feb-06 10:45
sitebuilderShog916-Feb-06 10:45 
GeneralRe: modeless dialog WM_CLOSE - opinion Pin
23_44416-Feb-06 11:15
23_44416-Feb-06 11:15 
GeneralRe: modeless dialog WM_CLOSE - opinion Pin
Shog916-Feb-06 11:32
sitebuilderShog916-Feb-06 11:32 
GeneralRe: modeless dialog WM_CLOSE - opinion Pin
23_44416-Feb-06 11:49
23_44416-Feb-06 11:49 
GeneralRe: modeless dialog WM_CLOSE - opinion Pin
Shog916-Feb-06 12:25
sitebuilderShog916-Feb-06 12:25 
GeneralRe: modeless dialog WM_CLOSE - opinion Pin
23_44417-Feb-06 8:56
23_44417-Feb-06 8:56 
QuestionShades of a color Pin
DirA15-Feb-06 2:25
DirA15-Feb-06 2:25 
AnswerRe: Shades of a color Pin
Maximilien15-Feb-06 2:53
Maximilien15-Feb-06 2:53 
by lattice, you mean something like a grid/2d array/spreasheet ?

I suggest you display your data using Chris Maunder's Grid Control[^], and define one new cell type that will draw itseld according to the number drawn inside it.

to define the shading, you have a number of choices, I suggest something simple using RGB values; to use shades of grey; but there is a resolution issue, depending on the range of the numbers in the cells ( between lower and upper values ) each grey shade will be used for a range of number.

 /// here is some code, untested, uncheck, and probably wrong ... 
int iRandomNumber; /// number that you generated.
int iLowerBound = 0;
int iUpperBound = 25000; /// or set to your upper bound.

int iShadeValue;

iShadeValue = ( iRandomNumber / iUpperBound  ) * 255;
COLORREF cShadeColor = RGB( iShadeValue, iShadeValue, iShadeValue );



Maximilien Lincourt
Your Head A Splode - Strong Bad
AnswerRe: Shades of a color Pin
Stephen Hewitt15-Feb-06 19:00
Stephen Hewitt15-Feb-06 19:00 
AnswerRe: Shades of a color Pin
Stephen Hewitt15-Feb-06 23:51
Stephen Hewitt15-Feb-06 23:51 
GeneralRe: Shades of a color Pin
DirA25-Feb-06 2:59
DirA25-Feb-06 2:59 
GeneralRe: Shades of a color Pin
Stephen Hewitt25-Feb-06 4:09
Stephen Hewitt25-Feb-06 4:09 
QuestionMultiple instance like MS Word Pin
Anilkumar K V15-Feb-06 1:54
Anilkumar K V15-Feb-06 1:54 
AnswerRe: Multiple instance like MS Word Pin
David Crow15-Feb-06 3:47
David Crow15-Feb-06 3:47 
GeneralRe: Multiple instance like MS Word Pin
Anilkumar K V15-Feb-06 17:04
Anilkumar K V15-Feb-06 17:04 
GeneralRe: Multiple instance like MS Word Pin
ThatsAlok16-Feb-06 2:38
ThatsAlok16-Feb-06 2:38 
GeneralRe: Multiple instance like MS Word Pin
David Crow16-Feb-06 2:50
David Crow16-Feb-06 2:50 
AnswerRe: Multiple instance like MS Word Pin
Michael Dunn15-Feb-06 12:08
sitebuilderMichael Dunn15-Feb-06 12:08 
QuestionListing OUs in Active Directory Pin
CarpetPants15-Feb-06 1:37
CarpetPants15-Feb-06 1:37 
QuestionFlash Decompiler ... Is it possible ? Pin
llp00na15-Feb-06 1:26
llp00na15-Feb-06 1:26 
AnswerRe: Flash Decompiler ... Is it possible ? Pin
toxcct15-Feb-06 2:27
toxcct15-Feb-06 2:27 
GeneralRe: Flash Decompiler ... Is it possible ? Pin
llp00na15-Feb-06 3:29
llp00na15-Feb-06 3:29 
GeneralRe: Flash Decompiler ... Is it possible ? Pin
toxcct15-Feb-06 3:31
toxcct15-Feb-06 3:31 
GeneralRe: Flash Decompiler ... Is it possible ? Pin
llp00na15-Feb-06 4:10
llp00na15-Feb-06 4:10 
GeneralRe: Flash Decompiler ... Is it possible ? Pin
Chintoo72315-Feb-06 7:15
Chintoo72315-Feb-06 7:15 

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.