Click here to Skip to main content
15,916,527 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How many ways to get machine name of localhost? Pin
George21-Nov-03 18:01
George21-Nov-03 18:01 
Questioncrystal report problem? Pin
murali_utr31-Oct-03 20:36
murali_utr31-Oct-03 20:36 
GeneralDisplay properties, DPI Pin
Vancouver31-Oct-03 20:32
Vancouver31-Oct-03 20:32 
QuestionCan Anyone Explain this !! :) Pin
Abhishek Srivastava31-Oct-03 18:43
Abhishek Srivastava31-Oct-03 18:43 
AnswerRe: Can Anyone Explain this !! :) Pin
Michael Dunn31-Oct-03 19:46
sitebuilderMichael Dunn31-Oct-03 19:46 
GeneralRe: Can Anyone Explain this !! :) Pin
Antti Keskinen1-Nov-03 11:10
Antti Keskinen1-Nov-03 11:10 
GeneralRe: Can Anyone Explain this !! :) Pin
Roger Allen1-Nov-03 12:58
Roger Allen1-Nov-03 12:58 
GeneralCImageList Color problem Pin
Shah Shehpori31-Oct-03 18:23
sussShah Shehpori31-Oct-03 18:23 
Friends i need to draw few bitmaps on my window. I used traditional BitBlt method to draw them, and images are drawn normally.

But instead of using BitBlt technique, i want to use CImageList, as such bitmaps appear on screen correctly, but the problem is that the original colors of bitmap gets lost. I think i am giving wrong values to CImageList functions. Please check what i am doing and help me finding the solution:

For creating CImageList:
m_imageList.Create(19,19,CLR_NONE ,0,3); // 19 height/width of bitmap

m_imageList.SetBkColor(CLR_NONE);

HBITMAP hBmp;

CBitmap *pBitmap;

for(int i=0; i < m_countBitmaps; ++i)
{
  HBITMAP hBmp = GetNextBitmapHandle();  // custom function

  pBitmap = new CBitmap();

  pBitmap->Attach(hBmp);

  m_imageList.Add(pBitmap,RGB(0,0,0));
}


For drawing CImageList:

m_imageList.Draw (
  pDC, 
  index, 
  CPoint(rect.left,rect.top), 
  ILD_NORMAL);

GeneralRe: CImageList Color problem Pin
atif_ilm@yahoo.com31-Oct-03 18:55
sussatif_ilm@yahoo.com31-Oct-03 18:55 
GeneralTranslate ascii character Pin
percyvimal31-Oct-03 17:57
percyvimal31-Oct-03 17:57 
GeneralTranslate the ascii character into extended ascii character Pin
percyvimal31-Oct-03 17:54
percyvimal31-Oct-03 17:54 
Generalconvert CTime data (c++) to Date data (VB). Pin
rajdawg31-Oct-03 15:39
rajdawg31-Oct-03 15:39 
GeneralRe: convert CTime data (c++) to Date data (VB). Pin
Anthony_Yio31-Oct-03 18:37
Anthony_Yio31-Oct-03 18:37 
GeneralRe: convert CTime data (c++) to Date data (VB). Pin
rajdawg1-Nov-03 9:38
rajdawg1-Nov-03 9:38 
QuestionHow can I query disk space Pin
devvvy31-Oct-03 15:19
devvvy31-Oct-03 15:19 
AnswerRe: How can I query disk space Pin
Ravi Bhavnani31-Oct-03 15:30
professionalRavi Bhavnani31-Oct-03 15:30 
AnswerRe: How can I query disk space Pin
Garth J Lancaster31-Oct-03 16:27
professionalGarth J Lancaster31-Oct-03 16:27 
QuestionHow can you check if dot-NET framework is installed on a computer? Pin
devvvy31-Oct-03 15:15
devvvy31-Oct-03 15:15 
Generalhelp with photoshop 7.0 Pin
Snyp31-Oct-03 14:43
Snyp31-Oct-03 14:43 
GeneralRe: help with photoshop 7.0 Pin
ZoogieZork1-Nov-03 11:38
ZoogieZork1-Nov-03 11:38 
GeneralCFontDialog: Hiding underline and strikeout Pin
Joe Woodbury31-Oct-03 11:55
professionalJoe Woodbury31-Oct-03 11:55 
GeneralRe: CFontDialog: Hiding underline and strikeout Pin
PJ Arends31-Oct-03 13:05
professionalPJ Arends31-Oct-03 13:05 
GeneralRe: CFontDialog: Hiding underline and strikeout Pin
Joe Woodbury31-Oct-03 13:20
professionalJoe Woodbury31-Oct-03 13:20 
GeneralRe: CFontDialog: Hiding underline and strikeout Pin
PJ Arends31-Oct-03 13:28
professionalPJ Arends31-Oct-03 13:28 
GeneralRe: CFontDialog: Hiding underline and strikeout Pin
PJ Arends31-Oct-03 13:51
professionalPJ Arends31-Oct-03 13:51 

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.