|
Because it's an STL exercise. Just because someone gets an error with STL does not automatically warrant a "Use MFC" comment.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
And what does he use if he can't get that to work?
Steve
|
|
|
|
|
edit your post so that we can see your include
btw, include this:
#include <STRING>
|
|
|
|
|
I agree, it seems as if you forgt an "#include" statement or some needed setting is not set properly.
|
|
|
|
|
A small knit pick, but you should use lowercase.
Steve
|
|
|
|
|
why ?
i always include the standard C++ headers in uppercase, as the include file names are written like that...
please explain your feeling
|
|
|
|
|
It is standard practice when writing portable code. On some systems, such as Linux, the file system is case sensitive. The standard headers are required to be lowercase.
Steve
|
|
|
|
|
The code you've shown is fine. Something else is at play, like using the /Za compiler switch.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
It should work. Are you using pre-compiled headers? If so did you put the
stdafx.h before the string include?
|
|
|
|
|
Hi everyone,
in my project, i have a DataGrid. If i size the ChildWindow, i refresh the number of rows of the grid
relative to the height.
At the refresh-function i need to change and load some things ( for example a new record from the DB )
So it takes a certain duration.
If i resize the Frame slowly, it works nice.
But if i resize it very fast, so there a many callings to resize the form.
For that reason i will lock the "Refresh-function" and only refresh at the end of the resizing.
But how can i "see" that the user has stopped the resizing of the frame?
Any ideas?
Big thanks
|
|
|
|
|
Hmm when the resizing stops, the user as released the mouse... maybe you can catch this event and look everytime its called if there had been a resizement.
Maybe by a "locking" variable in your "refresh Function"
-> Mosedown -> lock enable refresh part not called
-> Moseup -> lock release -> refresh/paint
|
|
|
|
|
Yeah, i had the same idea, but the Resizing-Border of the View nor of the Frame will call a MouseUp-Event
Trotzdem Danke
|
|
|
|
|
Trapping the mouse will have no effect when sizing, you should try using the WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE . BTW. these two messages are only sent to the main window and not child controls. Another message you could try trapping is the WM_WINDOWPOSCHANGED .
|
|
|
|
|
Great!
Thanks !
|
|
|
|
|
Hi, i have a problem... how i implement the canc button in list box?
The message WM_KEYDOWN and WM_CHAR don't work.
thanks....
Giulio
|
|
|
|
|
What do you intend to do?
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.
|
|
|
|
|
I want cancel an element on list box....
|
|
|
|
|
only with the canc button on the keyboard
|
|
|
|
|
Ing.Raiz82 wrote: the canc button on the keyboard
My (UK) keyboard doesn't have a "canc" button
Do you mean delete?
|
|
|
|
|
yes i mean delete button on the keyboard...
sorry for my english...
|
|
|
|
|
|
Thanks.... a lot....
Giulio
|
|
|
|
|
Di nulla.
Carlo
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.
|
|
|
|
|
Ing.Raiz82 wrote: ...the canc button in list box?
What exactly do you mean by this?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi All,
I have a Dialog with a listBox, Now i want to give the user an option of deleting an entry from list by selecting it and hitting the delete key in the key board? Can Any one help me on this?
Thanks.
|
|
|
|