|
Well, In first round it is working but once it comes to OK or CANCEL button is not going back to edit box.
I am trying for that...
I will post code after few minutes or if you do have idea of why is it not coming back to edit box, you can let me know..
Regards,
Anshul
|
|
|
|
|
Hi Ami,
My problem has been resolved. your given suggestion worked out.
Thanks a lot once again..... :)
|
|
|
|
|
how to get the full length of the string that contains 0's inbetween.
I tried _tcslen() on the LPCTSTR, but it gives the string len till the first occurrence of a 0.
TIA
|
|
|
|
|
But in that case, how will you find the end of the string?
|
|
|
|
|
Are you talking about a 0 or a NULL present in your string.
If it's a 0, it shouldn't be a problem.
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
you may try this :
CString strTemp;
---
--
--
// if you need length of string
strTemp.GetLength ();
|
|
|
|
|
ThisIsMeRon wrote: string that contains 0's inbetween.
In this case how do you know the end of string?
In this manner, normally the last string will be ending with two consecutive nulls (0s). Is your string so?
- ns ami -
|
|
|
|
|
hey guys I fixed it. It wasn't a 0 problem.
|
|
|
|
|
- ns ami -
|
|
|
|
|
|
You gotta set "Right To Left" attribute for any edit box you wanna use Arabic in it. Don't confuse with "Right Align"!
|
|
|
|
|
I am not confused with Right Alignment. What is confusing and not clear is the misplacement of the closing brackets.
|
|
|
|
|
Hi All
i am useing hide dialog for this function RunModalLoop(). it's working well but problem is that it's flash on screen then hide.I don't want to flash on screen.So how can i do?Plz help me
|
|
|
|
|
|
ok
I am useing code in abc.cpp class in this function
BOOL CABCApp::InitInstance()
{
CABCDlg dlg;
m_pMainWnd = &dlg;
INT_PTR nResponse;
if (m_lpCmdLine[0] == _T('h'))
{
dlg.Create( CABCDlg::IDD );
dlg.ShowWindow(SW_HIDE );
nResponse = dlg.RunModalLoop();
}
else
{
nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
}
else if (nResponse == IDCANCEL)
{
}
}
}
Plz help me
|
|
|
|
|
Untick the visible style ( WS_VISIBLE ) style of the dialog and try again.
|
|
|
|
|
can you give me a way how can i use?
|
|
|
|
|
Which version of visual studio are you using. In vc6 follow this method.
open your dialog->Right click->Take properties->Take more styles tab->Uncheck the "Visible button".
|
|
|
|
|
Thanks for idia.
But problem is that it's always in hide mode but i want to show when application run through commandline then it is in hidden mode and when user click on double click then it's show normal.
Plz help me
|
|
|
|
|
As per the code you posted, if the command line is 'h', then only you will call dlg.RunModalLoop() other wise DoModal() is called. isnt it?
In case of DoModal, the WS_VISIBLE style of the dialog has no effect. That means, your dialog will show correctly. While double click plese check, DoModal() or RunModalLoop() is called.
|
|
|
|
|
sorry you are right.
Thanks for help.
|
|
|
|
|
Davitor wrote: ...i want to show when application run through commandline then it is in hidden mode...
See the first section of this article.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
I want to change replace old image with new image in the Imagelist at 9 index. So I have used the Relace function, In that the 3 parameter saying the Bitmap mask. that i couldn't understood. Pls provide me the example for replace a image in the image list. My actual aim is to change the toolbar button image, when i cliked that toolbar button.
Provide me solution
|
|
|
|
|
Hi,
I could't get ur real problem. Any way, i already tell that set hot and cold image list for tool bar.Hot image list is for the image when we focus on the toolbar button.
|
|
|
|
|
Pls give a example for replacing the image in the Image list using Replace method. the 3 parmateter of the Replace method saying some mask. that i couldn't udersttod. Example pls
|
|
|
|