Click here to Skip to main content
15,904,155 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: The best way to use worker thread to connect to an database Pin
mesajflaviu19-Nov-10 8:23
mesajflaviu19-Nov-10 8:23 
QuestionSorting CListCtrl with group view enabled Pin
Paul201319-Nov-10 1:20
Paul201319-Nov-10 1:20 
AnswerRe: Sorting CListCtrl with group view enabled Pin
Richard MacCutchan19-Nov-10 2:53
mveRichard MacCutchan19-Nov-10 2:53 
GeneralRe: Sorting CListCtrl with group view enabled Pin
Paul201319-Nov-10 3:47
Paul201319-Nov-10 3:47 
QuestionCreate compatible bitmap Pin
MacCPlus19-Nov-10 0:57
MacCPlus19-Nov-10 0:57 
AnswerRe: Create compatible bitmap [modified] Pin
CPallini19-Nov-10 1:41
mveCPallini19-Nov-10 1:41 
GeneralRe: Create compatible bitmap Pin
MacCPlus19-Nov-10 2:26
MacCPlus19-Nov-10 2:26 
GeneralRe: Create compatible bitmap [fixed] Pin
CPallini19-Nov-10 3:03
mveCPallini19-Nov-10 3:03 
It really depends on your DIB bits (of course you've to assign the whole array).
My naive attempt, would be:
C++
  for (int n=0; n < 256; n++)
  {
    lpInfo->bmiColors[n].rgbBlue=b;
    lpInfo->bmiColors[n].rgbGreen=b;
    lpInfo->bmiColors[n].rgbRed=b;
    lpInfo->bmiColors[n].rgbReserved=0;
    lpInfo->bmiColors[n].rgbBlue=n;
    lpInfo->bmiColors[n].rgbGreen=n;
    lpInfo->bmiColors[n].rgbRed=n;
    lpInfo->bmiColors[n].rgbReserved=0;
  }



Smile | :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]
modified on Tuesday, November 23, 2010 7:47 AM

GeneralRe: Create compatible bitmap Pin
MacCPlus19-Nov-10 4:30
MacCPlus19-Nov-10 4:30 
GeneralRe: Create compatible bitmap Pin
CPallini19-Nov-10 6:34
mveCPallini19-Nov-10 6:34 
GeneralRe: Create compatible bitmap Pin
MacCPlus21-Nov-10 21:55
MacCPlus21-Nov-10 21:55 
GeneralRe: Create compatible bitmap Pin
CPallini21-Nov-10 22:06
mveCPallini21-Nov-10 22:06 
GeneralRe: Create compatible bitmap Pin
MacCPlus22-Nov-10 0:49
MacCPlus22-Nov-10 0:49 
GeneralRe: Create compatible bitmap Pin
CPallini22-Nov-10 1:55
mveCPallini22-Nov-10 1:55 
GeneralRe: Create compatible bitmap Pin
MacCPlus23-Nov-10 1:43
MacCPlus23-Nov-10 1:43 
GeneralRe: Create compatible bitmap Pin
CPallini23-Nov-10 1:52
mveCPallini23-Nov-10 1:52 
GeneralRe: Create compatible bitmap Pin
MacCPlus23-Nov-10 2:25
MacCPlus23-Nov-10 2:25 
QuestionAutomation tool for MFC Dialog based applications Pin
kapardhi18-Nov-10 19:37
kapardhi18-Nov-10 19:37 
AnswerRe: Automation tool for MFC Dialog based applications Pin
David Crow19-Nov-10 4:15
David Crow19-Nov-10 4:15 
QuestionHow to Load Tiff File using LoadImage? Pin
002comp18-Nov-10 18:03
002comp18-Nov-10 18:03 
AnswerRe: How to Load Tiff File using LoadImage? Pin
Luc Pattyn18-Nov-10 18:42
sitebuilderLuc Pattyn18-Nov-10 18:42 
GeneralRe: How to Load Tiff File using LoadImage? Pin
CPallini19-Nov-10 0:59
mveCPallini19-Nov-10 0:59 
GeneralRe: How to Load Tiff File using LoadImage? Pin
Luc Pattyn19-Nov-10 1:32
sitebuilderLuc Pattyn19-Nov-10 1:32 
GeneralOT Pin
CPallini19-Nov-10 1:55
mveCPallini19-Nov-10 1:55 
GeneralRe: OT Pin
Luc Pattyn19-Nov-10 1:57
sitebuilderLuc Pattyn19-Nov-10 1:57 

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.