|
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
|
|
|
|
|
I will explain my problem sir, I have three buttons in the toolbar with associated bitmapgreen, Red, Blue. Now When I clicked the Red button, that button color has to changed to Yellow color. Give me example
|
|
|
|
|
Thanks That problem is solved with the follosing code.
hIcon = AfxGetApp()->LoadIcon(IDI_ICON1);
m_wndToolBar.GetToolBarCtrl().GetImageList()->Replace(8,hIcon);
|
|
|
|
|
The mask bitmap is use to make some part of the original image transparent. Thie value have effect only if you have created the image list with flag ILC_MASK .
But I think in your case rather than replacing the ICon in the image list, just change the icon index of the button using the CToolBar::SetButtonInfo() fuction.
|
|
|
|
|
|
Hi,
I need to fill the CMap map and then Pass it to other function as argument. Is it possible? I am getting error while doing this.
e.g CMap<cstring,>, vector<cstring> >cMapPassArg;
-- fill the CMap
-- Call the function func(...,..,cMapPassArg)
-- Called function func(...,...,CMap cMapPassArg);
Mike
|
|
|
|