|
Yes it will work.
Can u suggest me for transparenting the background for the button control
S.Yamini
|
|
|
|
|
again, You can override OnEraceBk,, and return TRUE from there for that button, it won't paint buton background...
|
|
|
|
|
Thanks I will try
S.Yamini
|
|
|
|
|
If you have bmp on the resource you can use of CBitmap class.
|
|
|
|
|
Thanks.
Is there any calculation to convert the x,y coordinate of the CPoint to angle of the circle
S.Yamini
|
|
|
|
|
i advice all the members who are starting the threads to indicate a keyword like [SOLVED] by prefixing the same to the main subject, once they are solved
thanks.
|
|
|
|
|
Hi,
I want to get current localize date. how can i get it and convert it into CString in MFC.
Thanks
|
|
|
|
|
very simple
CTime time;
CString timestr;
time=CTime::GetCurrentTime();
timestr.Format("%d:%d:%d",time.GetHour(),time.GetMinute(),time.GetSecond());
AfxMessageBox(timestr);
|
|
|
|
|
Thnks, But i want to localize date format according to system settings. how can i archive this. i'm using .Net 2003.
|
|
|
|
|
can u just tell me what you mean by localise?
|
|
|
|
|
I mean if user set its short date as dd:mm:yyyy i want it in that format or if user set it as mm-dd-yy, i want it that way !!.(according to local computer settings)
|
|
|
|
|
how ever the format you want ultimately, CTime brings you all the fields, what all you have to do is to format them as you want by using str.Format, as i specified in my earlier post.
|
|
|
|
|
yaar, how can i know current system settings, how can i know system date format??
|
|
|
|
|
iam unable to agree the point that a system will have some date format.
as far as i know, the format is only our interpretation, and we can typecaset it in any of our required format.
how ever, spell out your actual requirement, then i can suggest some technique.
|
|
|
|
|
Ok, i tell u where u can set time and date format. Go To Control Panel>Date,Time,Language, and Regional Settings>Regional And Language Options>Regional Options> you can see a button saying Customize... press it and u can see a dialog where u can customize all regional settings. i want my date to be shown in status bar in that format which Current Window Logged in user set for it in
Control Panel>Date,Time,Language, and Regional Settings>Regional And Language Options>Regional Options >Customize > Date > Short Date.. I hop u can now understand..
|
|
|
|
|
COleDateTime::Format may help you.
- NS -
|
|
|
|
|
I've a MFC dialog with two edit boxes...
By default focus in on first text box.
I want that during dialog load if first edit box contains some text,
then second edit box should have focus... I've tried SetFocus() in InitDialog()
but it's not working... focus still remains on first control.
How should I do it? Please Help!
|
|
|
|
|
make sure that Set focus() is the last statement in the init dialog.
if it is so,
just post a sample of your init dialog code, i shall solve it
|
|
|
|
|
You have to return FALSE from OnInitDialog if you need to set the focus to a particular control by yourself.
- NS -
|
|
|
|
|
In addition to what NS17 stated, you should also use GotoDlgCtrl() instead of SetFocus()
when setting the focus to edit controls.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
If you change the focus in OnInitDialog() to something other than the first control, make sure that your OnInitDialog() handler returns FALSE. If it returns TRUE, the default Window handler sets the focus for you, overriding anything you did.
Software Zen: delete this;
|
|
|
|
|
i advice all the members who are starting the threads to indicate a keyword like [SOLVED] by prefixing the same to the main subject, once they are solved
thanks.
-- modified at 3:59 Saturday 1st September, 2007
|
|
|
|
|
Put that advice directly as 'Subject' like mine.
It will be more visible
Russell
|
|
|
|
|
thanks russel,
but can you suggest me some idea such that it always sits on top of all the posts. like that of chris maunder.
|
|
|
|
|