Click here to Skip to main content
15,913,090 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Thread Safe Static Library Problem Pin
Federico Milano17-Nov-05 4:17
Federico Milano17-Nov-05 4:17 
AnswerRe: Thread Safe Static Library Problem Pin
Tim Smith17-Nov-05 3:01
Tim Smith17-Nov-05 3:01 
AnswerRe: Thread Safe Static Library Problem Pin
James R. Twine17-Nov-05 6:09
James R. Twine17-Nov-05 6:09 
QuestionCHtmlView problem ? Pin
kendao17-Nov-05 2:34
kendao17-Nov-05 2:34 
AnswerRe: CHtmlView problem ? Pin
Sheng Jiang 蒋晟17-Nov-05 12:47
Sheng Jiang 蒋晟17-Nov-05 12:47 
QuestionCImageList question? Pin
followait17-Nov-05 0:39
followait17-Nov-05 0:39 
AnswerRe: CImageList question? Pin
Rage17-Nov-05 1:13
professionalRage17-Nov-05 1:13 
GeneralRe: CImageList question? Pin
followait17-Nov-05 3:18
followait17-Nov-05 3:18 
all the test code is in the button click msg handler

void CTest_CImgaeListDlg::OnButton1()
{
CClientDC dc(this);
//create a CBitmap, a simple rect, (0,0,10,10)
CBitmap bmp;
bmp.CreateCompatibleBitmap(&dc,16,16);

CDC dcMem;
dcMem.CreateCompatibleDC(&dc);
CBitmap *pOldBmp=dcMem.SelectObject(&bmp);

dcMem.Rectangle(0,0,10,10);
dcMem.SelectObject(pOldBmp);

//save it in iml, and get it immediately, but there is something worng
CImageList iml;
iml.Create(16,16,ILC_COLOR24,5,5);
int idx=iml.Add(&bmp,RGB(0,0,0));

IMAGEINFO ii;
iml.GetImageInfo(idx,&ii);
CBitmap *pBmp=CBitmap::FromHandle(ii.hbmImage);

pOldBmp=dcMem.SelectObject(pBmp);
dc.BitBlt(0,0,16,16,&dcMem,0,0,SRCCOPY);
dcMem.SelectObject(pOldBmp);
}
GeneralRe: CImageList question? Pin
Rage17-Nov-05 5:54
professionalRage17-Nov-05 5:54 
QuestionJavaScript from ActiveX Control Pin
Priyank Bolia17-Nov-05 0:30
Priyank Bolia17-Nov-05 0:30 
AnswerRe: JavaScript from ActiveX Control Pin
Eytukan17-Nov-05 3:03
Eytukan17-Nov-05 3:03 
GeneralRe: JavaScript from ActiveX Control Pin
Sheng Jiang 蒋晟17-Nov-05 12:47
Sheng Jiang 蒋晟17-Nov-05 12:47 
GeneralRe: JavaScript from ActiveX Control Pin
ThatsAlok17-Nov-05 21:44
ThatsAlok17-Nov-05 21:44 
GeneralRe: JavaScript from ActiveX Control Pin
Sheng Jiang 蒋晟18-Nov-05 2:51
Sheng Jiang 蒋晟18-Nov-05 2:51 
QuestionType of an Object Pin
romuzu16-Nov-05 23:20
romuzu16-Nov-05 23:20 
AnswerRe: Type of an Object Pin
Gizzo16-Nov-05 23:49
Gizzo16-Nov-05 23:49 
AnswerRe: Type of an Object Pin
followait17-Nov-05 0:46
followait17-Nov-05 0:46 
AnswerRe: Type of an Object Pin
David Crow17-Nov-05 2:39
David Crow17-Nov-05 2:39 
QuestionStrange Child Windows Pin
Fester_197716-Nov-05 21:18
Fester_197716-Nov-05 21:18 
AnswerRe: Strange Child Windows Pin
Arman S.17-Nov-05 1:34
Arman S.17-Nov-05 1:34 
GeneralRe: Strange Child Windows Pin
Fester_197717-Nov-05 2:40
Fester_197717-Nov-05 2:40 
GeneralRe: Strange Child Windows Pin
S Douglas17-Nov-05 19:55
professionalS Douglas17-Nov-05 19:55 
QuestionDisplay text on Lacal language Pin
anilksingh16-Nov-05 18:33
anilksingh16-Nov-05 18:33 
AnswerRe: Display text on Lacal language Pin
Rage17-Nov-05 5:59
professionalRage17-Nov-05 5:59 
QuestionHow to know what are the ports that are currrently being occupied by a particular application? Pin
Owner drawn16-Nov-05 18:19
Owner drawn16-Nov-05 18:19 

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.