|
You have to return a hbursh or the pdc settings is ignored,
the m_brush is a member variable of the dialog which is created during its initialization. you wanted to make the background white rite, so create a member variable of CBrush with RGB(255,255,255) and return this brush from the OnCtlColor method.
I have lost more blood shaving than on the battlefield - Adolf Hitler
|
|
|
|
|
|
I have a memory leak in my Windows GUI program. When I go to my task manager I see the memory usage increasing by about 200k every second. I haven't been able to isolate it completely, but I notice that whenever I minimize the window, the memory usage jumps back to about 1070k and then restarts its slow ascent as it's minimized. Anybody have any idea what's happening? I have an OpenGL child window.
|
|
|
|
|
well i reckon u be allocating memory that ur not freeing
cos its happening when the window is showing i guess ur drawing stuff that requires memory to build the models
"there is no spoon" biz stuff about me
|
|
|
|
|
Read the last section of this article.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
I didn't get what u mean by."Read the last section of this article"
Last section of which article shud i read ?
Can u please help me out.
|
|
|
|
|
Oops! 'this' - word is hyperlinked to the article
Sorry for my wrong assumption.!!
|
|
|
|
|
hi, im new in c++ is it posible to print colored lines in console??
thanks
u think u r so unique,
u think u have it all,
Deep down inside u r weak,
I'll shake and make u fall!
|
|
|
|
|
Hello,
SetConsoleTextAttribute function use to change the background or foreground color attribute.
With Regards,
R.Selvam
|
|
|
|
|
hi everyone,
does anyone know how to get the associated icon with this function? i need to extract the icon and put in a popup menu, so i don't quite realize how to do it, because i get an HICON and i need a CBitmap? i've tried the MSDN stuff, but nothing appears on the menu...?
any ideas would be appreciated
t1
---
kick ash.
http://sprdsoft.bigmoron.com
http://t1tan.cjb.net
|
|
|
|
|
Hello Folks!
I've tried without success to put text and bitmap in the same line inside a RichEdit control. Until now I get only the bitmap or only the text. There's a way to do that (using MFC, or not) ?
Thanks for any reply.
__________
Chulips
|
|
|
|
|
|
If I have a text file as below, I want to modify the line 3 "This is a test line3" to "Line changed.
What is the best way to do that beside creating a new file?
--------- text file -------------
This is a test line1
This is a test line2
This is a test line3
This is a test line4
This is a test line 5
----------------------------------
|
|
|
|
|
Well, if you absolutely cannot create a new file, you can read in each line of the file to an array or list object. Skip the line that needs changed. Insert text that represents the changed line. Continue reading the remaining lines from the file. Now write the entire data structure back out to the file. Make sense?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
May this helps u
http://www.codeproject.com/file/crotarylog.asp#xx726324xx
|
|
|
|
|
Hello,
use CStdioFile ReadString function and store the CStringArray .
With Regards,
R.Selvam
|
|
|
|
|
Hello,
I'm trying to map a network drive, but it seems not to appear anything in the MSDN, does anybody know how do I have to do it?
PS:
I'm doing it from the system account before starting a session and from XYNTService (you can find it here in CP).
Thank you in advance.
|
|
|
|
|
Joan Murt wrote:
I'm trying to map a network drive, but it seems not to appear anything in the MSDN, does anybody know how do I have to do it?
How about NetUseAdd() ?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
|
Hello,
I have an application that will need to open multiple dialogs at run time. But I have a problem. I open ONE dialog from the main frame by triggering on a menu option that the user selects. As long as the dialog window exists, I cant go back to the main frame to make other selections. Seems I have to close the dialog to go back to main frame selections. Can any one tell me what I need to do to fix the problem?
Jerry
|
|
|
|
|
You should call Create(...) instead of DoModal()
|
|
|
|
|
You are correct...I use DoModal(). But I am not sure how to replace it with Creat(...), do you have a small sample of code.
Thanks I appreciate it.
Jerry
|
|
|
|
|
|
Hiim very new to programming and i am trying to do my first program! can somebody help me telling me howto write a autorun.exe, what do i need?
Regards!
|
|
|
|
|
search a registry class work from this side and create a key with the name of your choice under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run and use the path to your .exe as value.
|
|
|
|