Click here to Skip to main content
15,906,106 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem drawing transparent bitmap using DrawTransparentBitmap exisitng ONLY in Win98 16bit color Pin
lob27-Mar-03 0:54
lob27-Mar-03 0:54 
GeneralRe: Problem drawing transparent bitmap using DrawTransparentBitmap exisitng ONLY in Win98 16bit color Pin
John R. Shaw28-Mar-03 18:13
John R. Shaw28-Mar-03 18:13 
GeneralRe: Problem drawing transparent bitmap using DrawTransparentBitmap exisitng ONLY in Win98 16bit color Pin
lob28-Mar-03 22:48
lob28-Mar-03 22:48 
QuestionDistributed Compiling? Pin
AAntix25-Mar-03 21:09
AAntix25-Mar-03 21:09 
AnswerRe: Distributed Compiling? Pin
Abbas_Riazi25-Mar-03 21:36
professionalAbbas_Riazi25-Mar-03 21:36 
QuestionHow To Turn Off The PC ? Pin
Vikrant Kapoor25-Mar-03 21:09
Vikrant Kapoor25-Mar-03 21:09 
AnswerRe: How To Turn Off The PC ? Pin
Hesham Amin25-Mar-03 21:32
Hesham Amin25-Mar-03 21:32 
GeneralCopying the Device COntext Pin
RaajaOfSelf25-Mar-03 20:58
RaajaOfSelf25-Mar-03 20:58 
I have to get the Bitmap of a HTML page,without displaying it .

The class used to load HTML is CDhtmlDialog .This is the sample code

CDhtmlDialog key;

Key.Navigate(fileName,0,NULL,NULL,NULL,0);
Key.SetWindowPos(this,rect1.left,rect1.top,rect1.Width(),rect1.Height(),SWP_SHOWWINDOW);//OK working

CDC * pDc=Key.GetDC();
HDC htmlDC=pDc->GetSafeHdc();
//create a sample image
CImage dest;
if(dest.CreateEx(118,88,24,BI_RGB,NULL,0)==FALSE)
{
AfxMessageBox("Error in extracting the Keyframe");
return FALSE;
}


HDC destDC=dest.GetDC();

SetStretchBltMode(destDC,HALFTONE);

//copy the
if(StretchBlt(destDC,0,0,118,88,htmlDC,0,0,rect1.Width(),rect1.Height(),SRCCOPY)==FALSE)
{
AfxMessageBox("Unable to Extract Key Frame");
return FALSE;
}


Now the problem with this is that the BItMap is not of the HTML page but of the application Mainframe window !!!!!!
QuestionHow To Get a FrameWindow From the Document Class in MDI Pin
Vikrant Kapoor25-Mar-03 20:55
Vikrant Kapoor25-Mar-03 20:55 
AnswerRe: How To Get a FrameWindow From the Document Class in MDI Pin
567890123426-Mar-03 0:58
567890123426-Mar-03 0:58 
GeneralWant to generate system alarm Pin
summo25-Mar-03 20:37
summo25-Mar-03 20:37 
Generaldoc Icon... Pin
Manikandan25-Mar-03 20:16
Manikandan25-Mar-03 20:16 
GeneralRe: doc Icon... Pin
Dave Bryant26-Mar-03 8:57
Dave Bryant26-Mar-03 8:57 
GeneralProblem in email sending(SMTP) Pin
summo25-Mar-03 19:44
summo25-Mar-03 19:44 
GeneralProperty pages not initialized Pin
DREVET Olivier25-Mar-03 19:38
DREVET Olivier25-Mar-03 19:38 
GeneralRe: Property pages not initialized Pin
Roger Allen26-Mar-03 0:33
Roger Allen26-Mar-03 0:33 
GeneralRe: Property pages not initialized Pin
DREVET Olivier26-Mar-03 0:46
DREVET Olivier26-Mar-03 0:46 
GeneralRe: Property pages not initialized Pin
Joan M26-Mar-03 7:10
professionalJoan M26-Mar-03 7:10 
GeneralRe: Property pages not initialized Pin
DREVET Olivier26-Mar-03 8:04
DREVET Olivier26-Mar-03 8:04 
GeneralUnicode functions on Windows 95 Pin
Paul M Watt25-Mar-03 18:55
mentorPaul M Watt25-Mar-03 18:55 
GeneralRe: Unicode functions on Windows 95 Pin
John R. Shaw28-Mar-03 8:42
John R. Shaw28-Mar-03 8:42 
GeneralMFC TREE CONTROL QUERY Pin
rohit.dhamija25-Mar-03 18:52
rohit.dhamija25-Mar-03 18:52 
GeneralHelp : private: static struct AFX_MSGMAP_ENTRY const * const CPropPage_SecurityGroup::_messageEntries' : 'selectany' can only be applied to statically initialized data items with external linkage Pin
Vikrant Kapoor25-Mar-03 18:19
Vikrant Kapoor25-Mar-03 18:19 
GeneralRe: Help : private: static struct AFX_MSGMAP_ENTRY const * const CPropPage_SecurityGroup::_messageEntries' : 'selectany' can only be applied to statically initialized data items with external linkage Pin
Dave Bryant25-Mar-03 18:27
Dave Bryant25-Mar-03 18:27 
GeneralRe: Help : private: static struct AFX_MSGMAP_ENTRY const * const CPropPage_SecurityGroup::_messageEntries' : 'selectany' can only be applied to statically initialized data items with external linkage Pin
Vikrant Kapoor25-Mar-03 20:35
Vikrant Kapoor25-Mar-03 20:35 

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.