Click here to Skip to main content
15,907,326 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: result file in HTML format Pin
Chris Losinger9-Mar-11 8:11
professionalChris Losinger9-Mar-11 8:11 
QuestionGetNetworkParams Pin
trioum8-Mar-11 20:30
trioum8-Mar-11 20:30 
AnswerRe: GetNetworkParams Pin
_AnsHUMAN_ 8-Mar-11 20:36
_AnsHUMAN_ 8-Mar-11 20:36 
GeneralRe: GetNetworkParams Pin
trioum8-Mar-11 22:15
trioum8-Mar-11 22:15 
GeneralRe: GetNetworkParams Pin
Richard MacCutchan8-Mar-11 23:22
mveRichard MacCutchan8-Mar-11 23:22 
GeneralRe: GetNetworkParams Pin
David Crow10-Mar-11 2:01
David Crow10-Mar-11 2:01 
Questionhow to show tooltip text as table for TreeView??? Pin
Nikhil Sisodia8-Mar-11 20:24
Nikhil Sisodia8-Mar-11 20:24 
QuestionShow tooltip text as table for TreeView Pin
Nikhil Sisodia8-Mar-11 20:20
Nikhil Sisodia8-Mar-11 20:20 
AnswerRe: Show tooltip text as table for TreeView Pin
Hans Dietrich9-Mar-11 6:15
mentorHans Dietrich9-Mar-11 6:15 
QuestionHow to deselct the text from a rich edit control when i click ( not click and move ) in the text of it. Pin
Amrit Agr8-Mar-11 0:19
Amrit Agr8-Mar-11 0:19 
AnswerRe: How to deselct the text from a rich edit control when i click ( not click and move ) in the text of it. Pin
Hans Dietrich8-Mar-11 1:09
mentorHans Dietrich8-Mar-11 1:09 
Questionprogram leaks memory when i resize [modified] Pin
leorex8-Mar-11 0:16
leorex8-Mar-11 0:16 
AnswerRe: program leaks memory when i resize Pin
Code-o-mat8-Mar-11 0:32
Code-o-mat8-Mar-11 0:32 
AnswerRe: program leaks memory when i resize Pin
CPallini8-Mar-11 0:51
mveCPallini8-Mar-11 0:51 
AnswerRe: program leaks memory when i resize Pin
Hans Dietrich8-Mar-11 1:13
mentorHans Dietrich8-Mar-11 1:13 
AnswerRe: program leaks memory when i resize Pin
leorex8-Mar-11 21:00
leorex8-Mar-11 21:00 
GeneralRe: program leaks memory when i resize Pin
Richard MacCutchan8-Mar-11 21:35
mveRichard MacCutchan8-Mar-11 21:35 
AnswerRe: program leaks memory when i resize Pin
Code-o-mat8-Mar-11 23:05
Code-o-mat8-Mar-11 23:05 
GeneralRe: program leaks memory when i resize Pin
leorex9-Mar-11 0:14
leorex9-Mar-11 0:14 
PROBLEM SOLVED!!!

close to no memory leak with this in the for loop (still goes up by like a few bytes once in a while >.< but it doesnt really interfere with the program so i guess its ok =_=)

hBrush_1 = CreateSolidBrush(color[i_row][j_column]);
SelectObject(hdc, hBrush_1);
Rectangle(hdc, 90*j_column+100, 50+30*i_row, 90*j_column+180, 30*i_row+75); //rember is x, y, x, y
DeleteObject(hBrush_1);


to be perfectly honest I do not get the explanation with holdbrush.

"you won't know the original brush and won't be able to select it back into the DC when you are done."

sorry if it is a neeeewb question, but why?
GeneralRe: program leaks memory when i resize Pin
Code-o-mat9-Mar-11 0:44
Code-o-mat9-Mar-11 0:44 
GeneralRe: program leaks memory when i resize Pin
leorex9-Mar-11 10:21
leorex9-Mar-11 10:21 
GeneralRe: program leaks memory when i resize Pin
Code-o-mat9-Mar-11 10:27
Code-o-mat9-Mar-11 10:27 
AnswerRe: program leaks memory when i resize Pin
SledgeHammer019-Mar-11 13:58
SledgeHammer019-Mar-11 13:58 
Questionput image on client area of main frame windows Pin
Max++7-Mar-11 19:37
Max++7-Mar-11 19:37 
AnswerRe: put image on client area of main frame windows Pin
Hans Dietrich7-Mar-11 19:45
mentorHans Dietrich7-Mar-11 19:45 

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.