Click here to Skip to main content
15,895,011 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Passing public data members from view window to a Dialog Pin
ThatsAlok24-Apr-06 22:36
ThatsAlok24-Apr-06 22:36 
AnswerRe: Passing public data members from view window to a Dialog Pin
voorugonda prashanth24-Apr-06 22:51
voorugonda prashanth24-Apr-06 22:51 
Questionhow can I change color gradually Pin
snowheavy24-Apr-06 22:04
snowheavy24-Apr-06 22:04 
AnswerRe: how can I change color gradually Pin
Cedric Moonen24-Apr-06 22:14
Cedric Moonen24-Apr-06 22:14 
GeneralRe: how can I change color gradually Pin
snowheavy24-Apr-06 22:23
snowheavy24-Apr-06 22:23 
GeneralRe: how can I change color gradually Pin
Michael Dunn24-Apr-06 22:28
sitebuilderMichael Dunn24-Apr-06 22:28 
GeneralRe: how can I change color gradually Pin
snowheavy24-Apr-06 22:40
snowheavy24-Apr-06 22:40 
AnswerRe: how can I change color gradually Pin
Stephen Hewitt24-Apr-06 22:24
Stephen Hewitt24-Apr-06 22:24 
He's how I'd do it:

COLORREF Voodoo(COLORREF from, COLORREF to, int n, int d)
{
    // Grab the RGB components of the "from" and "to" colours.
    BTYE fr = GetRValue(from);
    BTYE fg = GetGValue(from);
    BTYE fb = GetBValue(from);
    BTYE tr = GetRValue(to);
    BTYE tg = GetGValue(to);
    BTYE tb = GetBValue(to);
 
    // Calculate the increments.
    double ri = double(tr-fr)/d;
    double gi = double(tg-fg)/d;
    double bi = double(tb-fb)/d;
 
    // Calculate and return the final colour.
    retunr RGB(fr+n*ri, fg+n*gi, fb+n*bi);
}</code>


Where:
 from - The from colour.
 to - The to colour.
 n - The step number.
 d - The total number of steps.

NOTE: This hasn't been tested.

Steve
GeneralRe: how can I change color gradually Pin
snowheavy24-Apr-06 22:37
snowheavy24-Apr-06 22:37 
Questiondbase file Pin
kk.tvm24-Apr-06 21:31
kk.tvm24-Apr-06 21:31 
AnswerRe: dbase file Pin
Maxwell Chen24-Apr-06 21:37
Maxwell Chen24-Apr-06 21:37 
GeneralRe: dbase file Pin
kk.tvm26-Apr-06 23:16
kk.tvm26-Apr-06 23:16 
QuestionFirewall & Spyware Issues &amp; Their Effect On Your Program Pin
chasetoys24-Apr-06 21:23
chasetoys24-Apr-06 21:23 
AnswerRe: Firewall Issues & Their Effect On Your Program Pin
Naveen24-Apr-06 21:30
Naveen24-Apr-06 21:30 
QuestionPaint Issue Pin
Anilkumar K V24-Apr-06 21:05
Anilkumar K V24-Apr-06 21:05 
AnswerRe: Paint Issue Pin
KarstenK24-Apr-06 22:55
mveKarstenK24-Apr-06 22:55 
GeneralRe: Paint Issue Pin
Anilkumar K V25-Apr-06 0:31
Anilkumar K V25-Apr-06 0:31 
QuestionTo speed data access in server Pin
sabitasamal24-Apr-06 20:09
sabitasamal24-Apr-06 20:09 
Questionhow to delete the older version dlls if newer version is available Pin
ramyasangeet24-Apr-06 19:41
ramyasangeet24-Apr-06 19:41 
AnswerRe: how to delete the older version dlls if newer version is available Pin
kiran janaswamy24-Apr-06 19:46
kiran janaswamy24-Apr-06 19:46 
QuestionRe: how to delete the older version dlls if newer version is available Pin
ramyasangeet25-Apr-06 22:39
ramyasangeet25-Apr-06 22:39 
AnswerRe: how to delete the older version dlls if newer version is available Pin
Michael Dunn24-Apr-06 20:15
sitebuilderMichael Dunn24-Apr-06 20:15 
AnswerRe: how to delete the older version dlls if newer version is available Pin
Anilkumar K V24-Apr-06 20:19
Anilkumar K V24-Apr-06 20:19 
Questionprotecting your window from IM windows & other popups Pin
chasetoys24-Apr-06 19:11
chasetoys24-Apr-06 19:11 
AnswerRe: protecting your window from IM windows & other popups Pin
Michael Dunn24-Apr-06 20:18
sitebuilderMichael Dunn24-Apr-06 20:18 

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.