|
Did you set Multicolumn on the listbox?
|
|
|
|
|
WhiteSky wrote: Did you set Multicolumn on the listbox?
Nopes I haven't.
Best Regards,
Mushq
Mushtaque Ahmed Nizamani
Software Engineer
Ultimus Pakistan
"English is my second language; please excuse any grammatical or spelling mistakes"
|
|
|
|
|
From the MSDN:
"LBS_MULTICOLUMN
Specifies amulti columnn list box that is scrolled horizontally. The LB_SETCOLUMNWIDTH message sets the width of the columns".
|
|
|
|
|
IS ur items have enough width ? otherwise Increase you item width..(give some lengthy string in item)
If u can Dream... U can do it
|
|
|
|
|
|
Did you test this case without set Multicolumn ?
|
|
|
|
|
WhiteSky wrote: Did you test this case without set Multicolumn ?
Yes. I have only tried that without setting Multicolumn property to true.
Best Regards,
Mushq
Mushtaque Ahmed Nizamani
Software Engineer
Ultimus Pakistan
"English is my second language; please excuse any grammatical or spelling mistakes"
|
|
|
|
|
Hey friends.....
How to fill the area Between two co-centric Circle/Arc.
we have co-ordinate of outer Arc/Circle and Inner Arc/Circle . how to colored this area with spwcific COLOR.
Thanks in advance...
|
|
|
|
|
Do you need to Graphics.FillEllipse or other functions of Graphics.Fill* .
|
|
|
|
|
You can use region. There are functions like Create CreateEllipticRgn , CreatePolygonRgn etc. After creatin region u can paint that using FillRgn.
In Gdiplus also there is class named Region.
If u can Dream... U can do it
|
|
|
|
|
Hey ..
thanks for replying..
But i am coding in MFC and some times i have only 0 to 90 degree arc(two arcs)
and i have to fill area between these two....
waiting for some tips..
|
|
|
|
|
You need to fill a shape that is a combination of the standard shapes, like ellipse, circle, etc. Am I right?
If so its better you use CRgn. You can create and combine different shapes to get what you needed. And after that you can use FillRgn function.
- NS -
|
|
|
|
|
Hi
In my VC++ (VC 8) programme, it was an Server - Client Programme.
In client programme first module was an Authetication ,in that when the client was entering , they must give User-id and Password.,here I want to disable all the Hot Key functions(eg : Alt+Tab, Alt+Ctl+Del…… all function keys).
And after entering I want to enable the key function.
Regards
shakumar
shakumar
|
|
|
|
|
you can disable ALT+ TAB using ::RegisterHotKey(m_hWnd,010,MOD_ALT ,VK_TAB);
but i think disabling alt+ctrl+del is difficult..
If u can Dream... U can do it
|
|
|
|
|
hi everybody
can some one help me how to connect mfc from mysql,i am new in mfc so please give me some link where i can send some data from dialog box to mysql data base
regard
malik
|
|
|
|
|
If you want a link see Database[^] on the codeproject.
|
|
|
|
|
hi
but there is no such type of demo application by which i can understand that how to interect mfc with mysql but there is a dicriptions of several classes and i am new for mfc and mysql
malik
|
|
|
|
|
Its a good place for database mysql/sql server/oracle and... but I think you are new to mfc and database,right?
|
|
|
|
|
I don't want code, just big picture. I've got a handle on the standard activeX control concept, but I think it has corrupted my thinking. Suppose I have an activeX control. I want to create an activeX control that wraps and manages a set of these other controls. These internal controls will interact with each other.
I've been through many, many web locations, and I believe MS has provided all of the technical bits and pieces, but nothing in a coherent manner. Can anyone just point me in the right direction?
thx
Charlie Gilley
Will program for food...
Whoever said children were cheaper by the dozen... lied.
Overheard in a cubicle: "A project is just a bug under development."
Seeking to rise above the intelligence of a one eared rabbit...
Caught in a vortex of weirdness...
|
|
|
|
|
Well, I blundered across an article that showed me how to put a frigging dialog inside of an activeX "control". At first, this made my mind go but the simplicity and elegance of how all of the code just plays is breathtaking.
Charlie Gilley
Will program for food...
Whoever said children were cheaper by the dozen... lied.
Overheard in a cubicle: "A project is just a bug under development."
Seeking to rise above the intelligence of a one eared rabbit...
Caught in a vortex of weirdness...
|
|
|
|
|
Hi all. Is there some API or standard function to call to retrive the current name of the program running? Something like GetCurrentProcessId(), maybe something like GetCurrentProgramName() or something of the sort. Google and Yahoo dont seem to help and i dont know where to begin this sort of search. Any suggestions? Thanx in advance.
|
|
|
|
|
|
Do you want to know current name of your program or other programs?
|
|
|
|
|
Isn't there an easy way, e.g. a CWnd base member function, that can be used to change a window's foreground or background color? I have two cases; in one I would like to change the background color of an edit control, in another I would like to change the color of a button. From what I have seen so far it seems like I have to create new classes derived from, in this case, the edit and button classes so that they can handle a WM_ERASE and do the necessary painting. I must not understand something because this seems way more complicated than it would seem and I don't want to head down the wrong path.
Thanks,
Wayne King
|
|
|
|
|
Edit control, easy. Button control, you're on your own
For edit controls, you can add a handler (in the parent dialog/window) for the WM_CTLCOLOR message.
In response to that message, return a handle to a brush that the system will use to paint the background.
Here's an example that sets all edit controls in a dialog to green text on red background:
RedBrush.CreateSolidBrush(RGB(0xFF,0x00,0x00));
...
BEGIN_MESSAGE_MAP(CMyDialog, CDialog)
ON_WM_CTLCOLOR()
END_MESSAGE_MAP()
...
HBRUSH CMyDialog::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CMyDialog::OnCtlColor(pDC, pWnd, nCtlColor);
if (nCtlColor == CTLCOLOR_EDIT)
{
pDC->SetTextColor(RGB(0x00,0xFF,0x00));
pDC->SetBkColor(RGB(0xFF,0x00,0x00));
hbr = RedBrush;
}
return hbr;
}
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|