Click here to Skip to main content
16,004,906 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: 8.3 format Pin
includeh1015-Feb-05 2:55
includeh1015-Feb-05 2:55 
GeneralRe: 8.3 format Pin
David Crow15-Feb-05 4:12
David Crow15-Feb-05 4:12 
GeneralRe: 8.3 format Pin
Mike Dimmick15-Feb-05 5:01
Mike Dimmick15-Feb-05 5:01 
GeneralRe: 8.3 format Pin
includeh1015-Feb-05 5:53
includeh1015-Feb-05 5:53 
GeneralRGB question.. Pin
rbid15-Feb-05 1:42
rbid15-Feb-05 1:42 
GeneralRe: RGB question.. Pin
RChin15-Feb-05 3:25
RChin15-Feb-05 3:25 
GeneralRe: RGB question.. Pin
normanS15-Feb-05 21:04
normanS15-Feb-05 21:04 
GeneralRe: RGB question.. Pin
basementman15-Feb-05 5:41
basementman15-Feb-05 5:41 
This is an old function that generated a suitable shadow color for drawing 3D elements. If you reverese it, it should do what you want:

COLORREF MakeShadowColor(COLORREF rgbColor)
{
  COLORREF rgbRetval;

  // common color conversions...
  if (rgbColor == RGB(255,255,128))     // lyellow
    {
      rgbRetval = RGB(128,128,0);
    }
  else if (rgbColor == RGB(192,192,192))     // lgrey
    {
      rgbRetval = RGB(128,128,128);
    }
  else if (rgbColor == RGB(128,255,255))  // lcyan
    {
      rgbRetval = RGB(0,0,255);
    }
  else if (rgbColor == RGB(0,0,0))     // black
    {
      rgbRetval = RGB(128,128,128);
    }
  else
    {
      short iR = (GetRValue(rgbColor)+1)/2;
      short iG = (GetGValue(rgbColor)+1)/2;
      short iB = (GetBValue(rgbColor)+1)/2;

      rgbRetval = RGB(iR,iG,iB);
    }

  return rgbRetval;
}
<pre> 

<span style="background-color: rgba(255, 255, 0, 1); color: rgba(0, 128, 0, 1); font-family: Verdana, Arial; font-size: 8pt; font-style: italic"> onwards and upwards... </span>

Questionmultiline edit box with 10000 lines??? Pin
rafal7715-Feb-05 1:34
sussrafal7715-Feb-05 1:34 
AnswerRe: multiline edit box with 10000 lines??? Pin
rocky_pulley15-Feb-05 1:47
rocky_pulley15-Feb-05 1:47 
AnswerRe: multiline edit box with 10000 lines??? Pin
David Crow15-Feb-05 4:15
David Crow15-Feb-05 4:15 
AnswerRe: multiline edit box with 10000 lines??? Pin
Ravi Bhavnani15-Feb-05 9:08
professionalRavi Bhavnani15-Feb-05 9:08 
GeneralCalling a C# dll from VC 7 Pin
CLermen15-Feb-05 0:59
CLermen15-Feb-05 0:59 
GeneralRe: Calling a C# dll from VC 7 Pin
Mike Dimmick15-Feb-05 1:15
Mike Dimmick15-Feb-05 1:15 
GeneralRe: Calling a C# dll from VC 7 Pin
CLermen15-Feb-05 2:01
CLermen15-Feb-05 2:01 
GeneralCreating child windows in PreSubclassWindow Pin
Garth Watkins15-Feb-05 0:43
Garth Watkins15-Feb-05 0:43 
GeneralRe: Creating child windows in PreSubclassWindow Pin
Garth Watkins15-Feb-05 9:22
Garth Watkins15-Feb-05 9:22 
GeneralRe: Creating child windows in PreSubclassWindow Pin
Garth Watkins15-Feb-05 9:26
Garth Watkins15-Feb-05 9:26 
GeneralRe: Creating child windows in PreSubclassWindow Pin
ThatsAlok16-Feb-05 19:07
ThatsAlok16-Feb-05 19:07 
GeneralMove a child window to an absolute position Pin
doctorpi14-Feb-05 22:32
doctorpi14-Feb-05 22:32 
GeneralRe: Move a child window to an absolute position Pin
Rajesh_Parameswaran15-Feb-05 0:14
Rajesh_Parameswaran15-Feb-05 0:14 
GeneralRe: Move a child window to an absolute position Pin
doctorpi15-Feb-05 0:20
doctorpi15-Feb-05 0:20 
GeneralRe: Move a child window to an absolute position Pin
User 665815-Feb-05 0:44
User 665815-Feb-05 0:44 
GeneralRe: Move a child window to an absolute position Pin
doctorpi15-Feb-05 0:50
doctorpi15-Feb-05 0:50 
GeneralRe: Move a child window to an absolute position Pin
Antony M Kancidrowski15-Feb-05 2:36
Antony M Kancidrowski15-Feb-05 2:36 

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.