|
I recently added the .h and .cpp files from this link:
http://www.codeproject.com/combobox/mccombobox.asp
It says in the directions to add the line #include "MultiColumnComboBox.h" in the .cpp file, but then the visual studios won't recognize variables of this type in the .h file. Besides, the demo project on the link actually includes the library in the .h file of the class using it...so I did that. Now I'm getting a linker error for every function call that I try to make with the variables I declare of type CMultiColumnComboBox. The view classes I'm using these variables in are CFormView classes. Any ideas would be appreciated...Thanks a ton!
Douglas A. Wright
dawrigh3@kent.edu
|
|
|
|
|
I can't for the life of me get 2 STATIC controls to use a white background instead of system COLOR_BTNFACE or whatever that color is.
Can someone give me the code required to change 2 named STATIC controls background color to white?
I have tried returning a white brush, but if I test the window handles to see if they match the STATIC controls inside OnCtlColor nothing happens???
I'm lost and getting mad
Any help appreciated
Cheers
The word of the day is legs, let's go back to my house and spread the word
|
|
|
|
|
Try posting the code please may be that will bemore helpfull in debuging.
I have lost more blood shaving than on the battlefield - Adolf Hitler
|
|
|
|
|
I stole this code form the MSDN article the last poster sent me...I ave no idea where m_brush comes from, but regardless the following ode doesn't work either....
I dunno if it's because I call SetDialogBkColor() in InitInstance or what, but this is pissin me off
HBRUSH hbr = CDragDialog::OnCtlColor(pDC, pWnd, nCtlColor);
if(pWnd->GetDlgCtrlID() == IDC_STATIC_ACCOUNT){
pDC->SetBkMode(TRANSPARENT);
}
return hbr;
Thanks
The word of the day is legs, let's go back to my house and spread the word
|
|
|
|
|
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()
|
|
|
|