|
In a pinch, I would set a short (25ms or so) timer each time the OnSize/Maximize event fires, resetting it and recreating it for each event, and when the last event comes in, the timer will then fire.
Just a Q&D solution...
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
I've also think about it, with a timer/delay
If it's really the last possibility, so i must realise it in this way.
So, thanks to you too
|
|
|
|
|
How do you discovered that OnSize happens many times?
I made an attempt on my dialog, seeing it (the handler wrote to log file its parameters) only once.
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.
|
|
|
|
|
With breakpoints or Messagebox that report a "I'm in OnSize"
And if the debug pauses, i can see that the Size-Messages are coming from the system, not from a self-written function.
2 On-Size-Event of the Frame executes also a OnSize on the View
And a 3-time on the Frame ( without a OnSize on the view )
Each OnSize on the View, a grid will be redimensioned and rows added/removed relative to the height of
the view. Propably the Size-Messages are coming from the Grid.SetWindowPos
I'm the only person that programms on MFC at the office, so i must ask each question here
And to change from Visual C# to MFC is a hard way where everybody has a lot of questions
I even don't know if my style of MFC-Programming is correct
|
|
|
|
|
baerten wrote: With breakpoints or Messagebox that report a "I'm in OnSize"
This is wrong way to track messages. Use log as suggested in earlier reply.
|
|
|
|
|
Ok, i inserted a logfile to the handler, the same procedure ...
more than 1 OnSize-Event for maximizing
Thanks nevertheless at all
|
|
|
|
|
Hi guys, there is an easy way from C++ to make the same as when in a web page you click on a button an a New Mail (from outlook express) appears with a preselected adress on it?
Do you know an example of this?
Thanks and Merry Christmas.
|
|
|
|
|
doctorpi wrote: Hi guys, there is an easy way from C++ to make the same as when in a web page you click on a button an a New Mail (from outlook express) appears with a preselected adress on it?
ShellExecute(hWnd, "open", "mailto:doctor@pi.com", ...);
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Thanks a lot.
mailto doesn't admit attachments?
|
|
|
|
|
|
Hello, everyone.
You may consider this question odd, but it is what I'm thinking of, should I learn C++ after C#?
I'm self-taught C# developer. During the last two years I made lots of work learning and using C#. Mainly, I played a role of ordinary team player or worked alone.
Sometimes I had performance issues and somebody of C++ guys helped me to workaround. (Envy was my feeling at the moments)
Now, my experience with C# is broad and strong. I try to get a job of senior developer, but unfortunately very often the requirements are C++\C#, and If you do not have native C++(not CLI) skills, you are out of the board.
I think they want native C++ just in case, even if projects really go under dot net.
Is it worth to learn C++ after C# ? If You have the same, could you share your experience?
Does it mean evolution of prof. skills or whim?
I've started C++, and after C# it seems to me very tough, especially class templates and pointers (together ). I suffer from low productivity as compared with C#.
Thank You.
Alex
|
|
|
|
|
C++ and C# are different things. C# is easier to understand with a C++ background (personal opinion though).
It is always worth learning a new langage, if you have time to spend (otherwise it is a waste, do not expect to understand C++ in less than a week) and a clear target as for why you would do it (which you have since you are targeting senior developer jobs where this is a requirement). Then go for it.
On the other way, I do not exactely see why senior developer would need to know both C++ and C#, unless for "porting" activities. I do not really see the win in being good at C++ for programming in C#.
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
Do not feed the troll ! - Common proverb
|
|
|
|
|
Alebas wrote: Sometimes I had performance issues and somebody of C++ guys helped me to workaround. (Envy was my feeling at the moments)
...Alebas wrote: Now, my experience with C# is broad and strong.
In my humble opinion, those two are mutually exclusive. If you have to go to a C++ developer for a performance issue in C#, you are likely not as broad and strong as you might believe yourself to be, let alone ready for a senior position!
I would suggest learning C++ for many reasons including the fact that while Microsoft is big, and Mono is making headway, C# does not yet rule the world!
I believe that learning C/C++ will benefit you because it should provide you with a better understanding of what is going on behind the scenes.nbsp; Having to manage your own memory and code (some of) your own algorithms and functionality should also help you recognize when one is a better approach than the other. At least, it will help you learn how to solve your own performance issues without going to someone else!
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
Hi , James.
Thank you for your answer. You have said the same what I was thinking about.
There is a little misunderstanding. I mean that C++ guys helped me to find a solution of a problem, but they did not of course just re-write some piece of program using C++ to make the program working faster. They simply were able to point out very precisely where the problem was. I was very exited by that ability of clear understanding.
When you do C#, many things are pre-implemented for you in NET framework. This greatly enhances your productivity as C# developer, and by common working standards you are really good, and you can say “I’m strong in C#, if you have strong attitude .
But the problem is that if You start learning programming using dotNET, particularly if you do not have special education but mostly self-taught, sometimes you perceive some functionality as obvious environment. You just use .NET features which seem evident and simple up front (outside), but they can have complex pre-implemented internal structure, which is hidden from your mind.
Having practical C++, C, assembler experience is necessary, I think, even if you may use it in 1% of your dotNET projects. Theoretical knowledge of general ideas (overal picture) is good but not enough.
Alex
|
|
|
|
|
Alebas wrote: I mean that C++ guys helped me to find a solution of a problem, but they did not of course just re-write some piece of program using C++ to make the program working faster.
I did not think that is what happened, sorry if I implied that.
I think that an understanding of the Win32 API as it relates to the functionality that is presented to you through the framework would be good to learn. If things like Mono ever become (more?) mainstream, it would also help explain why one feature works differently faster/slower/side-effects on architecture/OS than another. I believe that learning something a bit lower level like C/C++ would help in those areas, as well as an understanding of data structures (linked lists, hash tables, etc.) and algorithms and how they work are are implemented.
As far as assembly, I have never written any significant amount of assembly code myself. I have replaced a memcpy(...) here and there, but nothing serious. I think that an understanding of machine structures/architecture (how a CPU works, particularly ones you are using) and how your OS manages memory is more important, so that you begin to understand things like spatial and temporal locality when dealing with multiple items or sets of data and how they can affect performance.
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
While trying to convert an old Pascal program into Visual Studio 6.0 C++ WIn32. The hardware interfaces (for the device) quotes the base address is I/O port 300 (hex) for I/O port commands.
How do you access this address in a C++ Win32 application.
Cheers,
Andy
|
|
|
|
|
The bad news: You can't access the hardware in Win32. At least not in a user program. A driver does have permission to access hardware.
The good news: There are some free drivers to get.
The one I have heard about the most is inpout32.dll. Can be donwloaded from http://www.logix4u.net.[^]
There is others too, such as userport (Google for it).
I haven't tried them myself, so I can't answer questions about them.
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
|
|
No kidding: Open VC++ and press "F1". You'll get a complete help, and an index in which you can search for specific terms.
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
Do not feed the troll ! - Common proverb
|
|
|
|
|
(Having deleted his own message)
"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."
-- Caius Petronius, Roman Consul, 66 A.D.
|
|
|
|
|
Um, Wimp ?
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
James R. Twine wrote: Um, Wimp?
Uhm - yes.
"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."
-- Caius Petronius, Roman Consul, 66 A.D.
|
|
|
|
|
Hi,
I created a desktop in winsta0 windowstation. but i am unable to start explorer shell in that.or i do not be able to start a notepad in the desktop.
can anyone tell me why i cant?
any idea is appreciated.
Thanks
~ Selva
|
|
|
|
|
Just a thought - when you try to start the executables, what do the error/return codes tell you? GetLastError() can tell you a lot in situations like this...
Are you sure you are passing the correct ACCESS_MASK bit values?
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|