|
I guess we are in the CUBE not in the codeproject! someone is very fast and some is very slow did you see that movie?
|
|
|
|
|
Yes, I saw Cube and Hypercube, but I don't catch you
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Cube not in Hypercube man was in a room that its time was slow while woman was in a fast room when she spoke man didnt understand what she said,right?
|
|
|
|
|
I know a secrect about Pallini well his keyboard is very fast.
|
|
|
|
|
Hamid. wrote: I know a secrect about Pallini well his keyboard is very fast. [Laugh]
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
Select the combobox in the resource editor and set the "Type" property to "Drop List".
Or do you want to set it via code?
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
Thanks.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
Using Visual C++ 6.0 MFC in SDI application.
I setup an application using fixed client windows. Now I see that I need to add scrolling to the client windows for my drawing. I don't understand what and where exactly needs to change now.
Thanks
|
|
|
|
|
One possibility (the more obvious) is to add a ScrollBar to your view and the implement all the other things by yourself.
Other possibility is to have two different views attached (although it is SDI) to your application, one "normal" view, as you have and another one derived from CScrollView, it will already have almost all the functionality that you need for your scrolling implemented.
And another one, is to choose the CScrollView as parent of your main view from the beggining when you create your application and then change the size of the view dinamically according to your needs. If the size of the view is smaller than your window, the scroll will automatically disabled.
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
I tried changing things but there is one area of the code that I don't understand. I have two views that I switch between.
void CMainFrame::CreateActivateView(CRuntimeClass *pNewViewClass, UINT nID)
{
CView* pOldView = GetActiveView();
CView* pNewView = NULL;
// plus code to switch between views.
}
But when I try to Change the class to CScrolView I cannot compile the line
CScrollView* pOldView = GetActiveView();
But I don't understand how to change that from CView* to CScrollView*
Thanks
|
|
|
|
|
Try casting:
CScrollView* pOldView = (CScrollView*) GetActiveView ();
Hope it helps
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Hi all,
I m working on VC++2005,SDI type applcation,
By default Tab key is use for move next control.
I want to do this same function with Enter key.
Please tell me how can i do this,
i m waiting for ur helpfull answers.
Thanks in advance.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
PreTranslateMessage and PostMessage(WM_NEXTDLGCTL,TRUE,0); or PostMessage(WM_NEXTDLGCTL,FALSE,0);
Of course you can always create a new class for your controls and handle that in the control itself.
|
|
|
|
|
Please tell me how can i use this because if i m sue the PostMessage Function in PreTranslateMessage then after executing it is hang.
or if i m using PostMessage alone then it not works , or i dont know thw correct method to use it.
please help me for this.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
Thanks .
now its Resolved.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
Just arrived at work... sorry for not answering before.
|
|
|
|
|
Following is what I am doing...
string str1="true";
string str2="false";
bool str;
I want to assign the values to str by taking 'true' or false' from str1 or str2. When I do..
str=str1; or str=str2;
this does not work and shows an error. Is there any other alternative to this.
THANKS
|
|
|
|
|
string str1="true";
string str2="false";
bool b;
b = str1 == "true" ? true : false;
b = str1 == "true";
[added]
modified according to Jijo Ray [^] observation.
[/added]
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
if you can....
do this:
if(str1=="true")<br />
str=1;<br />
if(str2=="false")<br />
str=0;<br />
Mukesh Kumar
Software Engineer
|
|
|
|
|
on doing that I get the following.
error C2664: '__thiscall std::basic_string<char,struct std::char_traits<char="">,class std::allocator<char> >::std::basic_string<char,struct std::char_traits<char="">,class std::allocator<char> >(const cla
ss std::allocator<char> &)' : cannot convert parameter 1 from 'bool' to 'const class std::allocator<char> &'
Reason: cannot convert from 'bool' to 'const class std::allocator<char>'
No constructor could take the source type, or constructor overload resolution was ambiguous
I get the same even if I do the way Pallini said.
|
|
|
|
|
I got it correct. THANKS..
|
|
|
|
|
Thank God
Mukesh Kumar
Software Engineer
|
|
|
|
|
A bit more tuned one.
string str1="true";
string str2="false";
bool str;
str = str1 == "true";
Thanks & Regards,
Jijo.
________________________________
http://weseetips.com - Visual C++ technical tips.
|
|
|
|
|
Jijo raj wrote: // The == operator already return bool.
Good point, you're right.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Thanks Pallini.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|