Click here to Skip to main content
16,008,010 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionAssociate menu with dialog boxes on a tab control Pin
Trevy7-Mar-07 15:05
Trevy7-Mar-07 15:05 
AnswerRe: Associate menu with dialog boxes on a tab control Pin
Nibu babu thomas7-Mar-07 16:21
Nibu babu thomas7-Mar-07 16:21 
Questionc++ list sorting Pin
mehmetned7-Mar-07 14:36
mehmetned7-Mar-07 14:36 
AnswerRe: c++ list sorting Pin
Stephen Hewitt7-Mar-07 15:34
Stephen Hewitt7-Mar-07 15:34 
QuestionBase class to subclass conversion Pin
mehmetned7-Mar-07 13:10
mehmetned7-Mar-07 13:10 
AnswerRe: Base class to subclass conversion Pin
Stephen Hewitt7-Mar-07 15:42
Stephen Hewitt7-Mar-07 15:42 
Questionreturn a bitmap Pin
Zapacila7-Mar-07 10:51
Zapacila7-Mar-07 10:51 
AnswerRe: return a bitmap Pin
Paresh Chitte7-Mar-07 17:27
Paresh Chitte7-Mar-07 17:27 
	CFile file;<br />
<br />
	if( !file.Open( _T("C:\\Temp.bmp"), CFile::modeWrite|CFile::modeCreate) )<br />
		return bRet;<br />
<br />
	BITMAPFILEHEADER	hdr; // You have this info.<br />
	LPBITMAPINFOHEADER	lpbi; // You have this info.<br />
<br />
<br />
	int nColors = 1 << lpbi->biBitCount;<br />
<br />
	// Fill in the fields of the file header <br />
	hdr.bfType		= ((WORD) ('M' << 8) | 'B');	// is always "BM"<br />
	hdr.bfSize		= GlobalSize (hDIB) + sizeof( hdr );<br />
	hdr.bfReserved1 	= 0;<br />
	hdr.bfReserved2 	= 0;<br />
	hdr.bfOffBits		= (DWORD) (sizeof( hdr ) + lpbi->biSize +<br />
						nColors * sizeof(RGBQUAD));<br />
<br />
	// Write the file header <br />
	file.Write( &hdr, sizeof(hdr) );<br />
<br />
	// Write the DIB header and the bits <br />
	file.Write( lpbi, GlobalSize(hDIB) );<br />
<br />
	file.Close();

GeneralRe: return a bitmap Pin
Zapacila7-Mar-07 18:31
Zapacila7-Mar-07 18:31 
AnswerRe: return a bitmap Pin
Paresh Chitte7-Mar-07 20:17
Paresh Chitte7-Mar-07 20:17 
GeneralRe: return a bitmap Pin
Zapacila8-Mar-07 1:56
Zapacila8-Mar-07 1:56 
QuestionSlider Pin
mannur7-Mar-07 8:53
mannur7-Mar-07 8:53 
AnswerRe: Slider Pin
Mark Salsbery7-Mar-07 9:33
Mark Salsbery7-Mar-07 9:33 
AnswerRe: Slider Pin
David Crow7-Mar-07 10:21
David Crow7-Mar-07 10:21 
QuestionHelp choosing between VS6.0 and VS2005 Pin
BRShroyer7-Mar-07 8:16
BRShroyer7-Mar-07 8:16 
AnswerRe: Help choosing between VS6.0 and VS2005 Pin
Joe Woodbury7-Mar-07 8:52
professionalJoe Woodbury7-Mar-07 8:52 
AnswerRe: Help choosing between VS6.0 and VS2005 Pin
prasad_som7-Mar-07 17:10
prasad_som7-Mar-07 17:10 
QuestionNeed advice on display rotation performance from experienced programmers... Pin
Jun Du7-Mar-07 7:55
Jun Du7-Mar-07 7:55 
AnswerRe: Need advice on display rotation performance from experienced programmers... Pin
CPallini7-Mar-07 8:16
mveCPallini7-Mar-07 8:16 
AnswerRe: Need advice on display rotation performance from experienced programmers... Pin
Mark Salsbery7-Mar-07 9:03
Mark Salsbery7-Mar-07 9:03 
GeneralRe: Need advice on display rotation performance from experienced programmers... Pin
CPallini7-Mar-07 9:24
mveCPallini7-Mar-07 9:24 
GeneralRe: Need advice on display rotation performance from experienced programmers... Pin
Mark Salsbery7-Mar-07 9:30
Mark Salsbery7-Mar-07 9:30 
GeneralRe: Need advice on display rotation performance from experienced programmers... Pin
Jun Du7-Mar-07 9:35
Jun Du7-Mar-07 9:35 
GeneralRe: Need advice on display rotation performance from experienced programmers... Pin
Mark Salsbery7-Mar-07 9:44
Mark Salsbery7-Mar-07 9:44 
GeneralRe: Need advice on display rotation performance from experienced programmers... [modified] Pin
Mark Salsbery7-Mar-07 10:25
Mark Salsbery7-Mar-07 10:25 

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.