|
When I close a Dialog Window by the close windows cross, Its perfom a KillFocus, How can I avoid the code in the KillFocus or detect if the user did a click on close windows and do not perform the Killfocus code... Thanks
|
|
|
|
|
I think you can handle the WM_CLOSE message, which comes before any WM_KILLFOCUS message.
this is this.
|
|
|
|
|
Ok, I undersand. But the dialog that has the controls is a child and I close by the parent. Any Suggestion?
|
|
|
|
|
WM_DESTROY
Jesus Loves You and Me <marquee direction="up" height="50" scrolldelay="1" step="1" scrollamount="1" style="background-color:'#44ccff'">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|
|
Ok, Thanks, but WM_DESTROY perfom after KILLFocus, I need to detect that the user is going out before the control run killfocus, thank you, and I think like you about Jesus....
|
|
|
|
|
I have been reading that use Container classes
insted of Array's .It also says that we can
insert inbetween a vector array. Can anyone
say me how ?
Its good if we can see and example .
Do mean that a vector can be used for functions like
ADD, DELETE,INSERT ,POP ,PUSH
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
Here is a little example of class vector -s usage
do not forget to #include < vector >
...
template <class T>
void printVector(const std::vector< T > &integers2);
int _tmain(int argc, _TCHAR* argv[])
{
std::vector< int > integers;
cout<<"First size of array - integers : "<<integers.size();
integers.push_back(2);
integers.push_back(3);
integers.push_back(4);
integers[1] = 7;
integers.pop_back();
cout<<"\nElements of - integers in normal order : ";
printVector(integers);
cout<<endl;
return 0;
}
template < class T >
void printVector(const std::vector< T > &integers2)
{
for(int i = 0;i< integers2.size();i++)
cout<<integers2[i]<<" ";
}
...
Look in MSDN for details.
See deque and list classes also
Look here also
"Success is the ability to go from one failure to another with no loss of enthusiasm." - W.Churchill
-- modified at 7:55 Thursday 29th December, 2005
|
|
|
|
|
Thankx
but i have gone through the MSDN before posting the qestion
I wanted to know that can be insert in between a vector
Say we have vactor that holds 100 character , i want to
insert a character at loacton 50 from start and shift all
other element by 1. So initialy the char at 50 will now
be at 51 and char at 52 will be 53
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
then use deque class , here is a little example :
#include < deque >
#include < iostream >
int _tmain(int argc, _TCHAR* argv[])
{
using namespace std;
deque< int > c1, c2;
deque< int >::iterator Iter;
c1.push_back( 1 );
c1.push_back( 2 );
c1.push_back( 4 );
c1.push_back( 5 );
Iter = c1.begin();
Iter+=2;
c1.insert(Iter,3);
cout << "c1 = ";
for ( Iter = c1.begin( ); Iter != c1.end( ); Iter++ )
cout << *Iter << " ";
cout << endl;
return 0;
}
For further reference see MSDN
"Success is the ability to go from one failure to another with no loss of enthusiasm." - W.Churchill
-- modified at 8:24 Thursday 29th December, 2005
|
|
|
|
|
Thank you
this works out as i want
hope so using this class
dont have more overload on the processor,
compiler overload is not a problem .
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
vikas amin wrote: Thank you
you are welcome
"Success is the ability to go from one failure to another with no loss of enthusiasm." - W.Churchill
|
|
|
|
|
can you mention any??
it shouldn't be taking about "what's a structure","what's pointer",etc... it should be digging something deep into the "SEE"!, i'll be happy if it includes _asm . and i dont want any UNIX related stuff inside that. i want Microsoft C. please suggest a book.
and also for C++.
thanks.
"But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
|
|
|
|
|
VivekuniQ wrote: it should be digging something deep into the "SEE"!, i'll be happy if it includes _asm .
It's your brain. Trust me. He he.
But still(Just in case your brain fails;P) GOOGLE is your friend.
Jesus Loves You and Me <marquee direction="up" height="50" scrolldelay="1" step="1" scrollamount="1" style="background-color:'#44ccff'">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|
|
the best book of c++ is Bjarne Stroustroups's C++ (he's the guy who invented c++)
m$: It is normal for your screen to go blank and for your computer to restart itself several times
|
|
|
|
|
Hmmmm...
m_blueBrush.
Huh
Jesus Loves You and Me <marquee direction="up" height="50" scrolldelay="1" step="1" scrollamount="1" style="background-color:'#44ccff'">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|
|
I do not understand what can be so funny
m$: It is normal for your screen to go blank and for your computer to restart itself several times
|
|
|
|
|
Vivek knows
Jesus Loves You and Me <marquee direction="up" height="50" scrolldelay="1" step="1" scrollamount="1" style="background-color:'#44ccff'">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|
|
stroustroups' book has some wapi in it
m$: It is normal for your screen to go blank and for your computer to restart itself several times
|
|
|
|
|
Take a look at my name. It's in blue color. Sometime back he teased me about that. So I was just teasing him back;). Sorry for offending you.
That time he said m_blueBrush.
Now I said it back. He he
Jesus Loves You and Me <marquee direction="up" height="50" scrolldelay="1" step="1" scrollamount="1" style="background-color:'#44ccff'">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|
|
hahaha yeaa!!
"But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
|
|
|
|
|
VivekuniQ wrote: and also for C++.
I would suggest you these two.
C++ Unleashed - Jesse Liberty
Thinking C++ , Practical Programming - Bruce Eckel
"Success is the ability to go from one failure to another with no loss of enthusiasm." - W.Churchill
|
|
|
|
|
hmm.. thanks, i'll search for them in the stall.
"But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
|
|
|
|
|
|
I am going to download it just now.Thanx Alok
never say die
|
|
|
|
|
i think you cant stop helping me and i cant stop prasing u , thanks yaar.
"But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
|
|
|
|