How to draw horizontal line in dialog
-
Hi, I wish to draw a horizontal line in a dialog to delimit two sets of controls. But i cannot find any such thing on the tools panel. Can anyone please help me out with that ? Thanks in advance.
*** Who said nothing is impossible? I have been doing it for a long time ***
-
Hi, I wish to draw a horizontal line in a dialog to delimit two sets of controls. But i cannot find any such thing on the tools panel. Can anyone please help me out with that ? Thanks in advance.
*** Who said nothing is impossible? I have been doing it for a long time ***
What I do generally (but maybe it's not the cleanest solution) is to put a picture control and reduce its vertical size to the minimum. Then I open the property dialog (right click on the control -> property) and I modify the style to be sunken. Like that you have a nice line.
Cédric Moonen Software developer
Charting control [Updated - v1.1] -
What I do generally (but maybe it's not the cleanest solution) is to put a picture control and reduce its vertical size to the minimum. Then I open the property dialog (right click on the control -> property) and I modify the style to be sunken. Like that you have a nice line.
Cédric Moonen Software developer
Charting control [Updated - v1.1] -
Hi, I wish to draw a horizontal line in a dialog to delimit two sets of controls. But i cannot find any such thing on the tools panel. Can anyone please help me out with that ? Thanks in advance.
*** Who said nothing is impossible? I have been doing it for a long time ***
CoolASL wrote:
draw a horizontal line in a dialog
You can also do this:
HDC hdc=::GetDC (m_hWnd); ::MoveToEx (hdc,10,10,NULL); ::LineTo (hdc,100,10); ::ReleaseDC (m_hWnd,hdc);
Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_
-
Hi, I wish to draw a horizontal line in a dialog to delimit two sets of controls. But i cannot find any such thing on the tools panel. Can anyone please help me out with that ? Thanks in advance.
*** Who said nothing is impossible? I have been doing it for a long time ***
-
Hi, I wish to draw a horizontal line in a dialog to delimit two sets of controls. But i cannot find any such thing on the tools panel. Can anyone please help me out with that ? Thanks in advance.
*** Who said nothing is impossible? I have been doing it for a long time ***
or you can use from a Static control with set Type to Etched Horz
_**
**_
WhiteSky
-
or you can use from a Static control with set Type to Etched Horz
_**
**_
WhiteSky
hi WhiteSky.. Thanks for the response. Sorry, i couldnt get that property. Can you please specify which VS version you are using. I am using 2003. Or is it that i am not looking in the right place. Thanks.
*** Who said nothing is impossible? I have been doing it for a long time ***
-
hi WhiteSky.. Thanks for the response. Sorry, i couldnt get that property. Can you please specify which VS version you are using. I am using 2003. Or is it that i am not looking in the right place. Thanks.
*** Who said nothing is impossible? I have been doing it for a long time ***
When you insert picture control in your dialog then in property window set parameter Type->Etched Horz
_**
**_
WhiteSky
-
Hi, I wish to draw a horizontal line in a dialog to delimit two sets of controls. But i cannot find any such thing on the tools panel. Can anyone please help me out with that ? Thanks in advance.
*** Who said nothing is impossible? I have been doing it for a long time ***
CPen pen(RGB(0,0,0)); CClientDC ccd(this); ccd.SelectObject(&pen); ccd.MoveTo(0,240); ccd.LineTo(x,y);:)