Click here to Skip to main content
15,891,316 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Possible with shell extensions? Pin
Lim Bio Liong22-Jan-03 17:27
Lim Bio Liong22-Jan-03 17:27 
GeneralRe: Possible with shell extensions? Pin
Anonymous23-Jan-03 4:34
Anonymous23-Jan-03 4:34 
GeneralMemory Management & Windows Messenger Pin
Mike.NET22-Jan-03 11:39
Mike.NET22-Jan-03 11:39 
GeneralRe: Memory Management & Windows Messenger Pin
John M. Drescher22-Jan-03 13:04
John M. Drescher22-Jan-03 13:04 
GeneralRe: Memory Management & Windows Messenger Pin
Mike.NET22-Jan-03 15:14
Mike.NET22-Jan-03 15:14 
GeneralResizable Property Sheets under XP Pin
Member 8408522-Jan-03 11:26
Member 8408522-Jan-03 11:26 
GeneralUser authentication Pin
lvguy197222-Jan-03 11:12
lvguy197222-Jan-03 11:12 
GeneralHelp me to Release Resources! Pin
Ehsan Baghaki22-Jan-03 11:08
Ehsan Baghaki22-Jan-03 11:08 
hi. i am working on a project with a graphical interface. when i run my project after 1 or 2 minutes my projects became very Very Slow. is there any resources that i should had released them ?? i am using GDI+. i did my best but i didn't find any resources that can be released. Confused | :confused:

thanx AnyWay

void CCheckersView::OnPaint()<br />
{<br />
	CPaintDC dc(this); // device context for painting<br />
	// TODO: Add your message handler code here<br />
	// Do not call CView::OnPaint() for painting messages<br />
<br />
	Graphics graphics(dc.m_hDC);<br />
<br />
//////////////////////////////////////////////////        		<br />
	ColorMatrix colorMatrix = {0.0f, 0.0f, 0.0f, 0.0f, 0.0f,<br />
			           0.5f, 1.0f, 0.0f, 0.0f, 0.0f,<br />
				   0.0f, 0.0f, 1.0f, 0.0f, 0.0f,<br />
				   0.0f, 0.0f, 0.0f, 0.2f, 0.0f,<br />
				   0.0f, 0.0f, 0.0f, 0.0f, 1.0f};<br />
	ImageAttributes imageAtt;<br />
	imageAtt.SetColorMatrix(&colorMatrix, ColorMatrixFlagsDefault,ColorAdjustTypeBitmap);	<br />
//////////////////////////////////////////////////<br />
	for (int n=1;n<=18;n++) {<br />
	       for (int i=1;i<=del.n;i++)<br />
		  graphics.DrawImage(Bitmap::FromResource( AfxGetInstanceHandle(), (LPCWSTR) AKEINTRESOURCE(IDB_BMP)),Rect(0,0,67,67),0,0,67,67,UnitPixel,&imageAtt); <br />
<br />
//////////////////////////////////////////////////<br />
	SolidBrush s(Color(255, 114, 70, 57));<br />
	for (int j=0;j<=7;j++)<br />
	  for (int i=0;i<=3;i++)<br />
	       graphics.FillRectangle(&s,i*(l*2)+x+(((j+1)%2))*l,y+j*l,l,l);<br />
<br />
						<br />
		     <br />
<br />
} // End of OnPaint  					

GeneralRe: Help me to Release Resources! Pin
Joaquín M López Muñoz22-Jan-03 11:12
Joaquín M López Muñoz22-Jan-03 11:12 
Questionhow do I make a dynamic controlbar? Pin
tobbemannen22-Jan-03 10:40
tobbemannen22-Jan-03 10:40 
GeneralCreating the flyout menu of a submenu Pin
ns22-Jan-03 9:57
ns22-Jan-03 9:57 
GeneralRe: Creating the flyout menu of a submenu Pin
ns22-Jan-03 10:11
ns22-Jan-03 10:11 
GeneralRe: Creating the flyout menu of a submenu Pin
Roger Allen23-Jan-03 2:41
Roger Allen23-Jan-03 2:41 
GeneralRe: Creating the flyout menu of a submenu Pin
ns23-Jan-03 3:37
ns23-Jan-03 3:37 
GeneralRe: Creating the flyout menu of a submenu Pin
Roger Allen23-Jan-03 5:00
Roger Allen23-Jan-03 5:00 
GeneralReThanks! Pin
ns23-Jan-03 5:31
ns23-Jan-03 5:31 
GeneralRe: Creating the flyout menu of a submenu Pin
ns23-Jan-03 5:38
ns23-Jan-03 5:38 
GeneralRe: Creating the flyout menu of a submenu Pin
Moak25-Aug-10 23:54
Moak25-Aug-10 23:54 
Generaldebugging the release version Pin
ns22-Jan-03 9:42
ns22-Jan-03 9:42 
GeneralRe: debugging the release version Pin
Chris Losinger22-Jan-03 10:09
professionalChris Losinger22-Jan-03 10:09 
GeneralRe: debugging the release version Pin
ns22-Jan-03 10:17
ns22-Jan-03 10:17 
GeneralFonts not changing when printing, but not on every machine.. Pin
dazinith22-Jan-03 9:19
dazinith22-Jan-03 9:19 
GeneralRe: Fonts not changing when printing, but not on every machine.. Pin
Roger Allen23-Jan-03 2:44
Roger Allen23-Jan-03 2:44 
QuestionHow to modify this CMenu snippet? Pin
ns22-Jan-03 8:49
ns22-Jan-03 8:49 
AnswerRe: How to modify this CMenu snippet? Pin
Joaquín M López Muñoz22-Jan-03 9:06
Joaquín M López Muñoz22-Jan-03 9:06 

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.