1. I set tab order for control in a MFC dialog.
2. Started the application.
3. Clicked a button in dialog, whose tab order is 3.
4. A modal dialog displayed.
5. Closed the modal dialog.
Now the focus automatically moved to the control having tab order 0.
Since the focus was on the button just before the click, I would like to retain the selection on the same button.
I have a similar application (Win32 rather than MFC), but the focus stays in the correct place on return from the second dialog. I can only suggest you do some debugging to try to see what is happening under the covers.
Solution to what? We have no idea what your code is doing, or what you are doing when you run it, beyond your belief that the focus moves after you run some dialog. The only way to move forward with this is to write a very simple test program to demonstrate the problem and run some tests until you can isolate exactly what is happening.
I want to create an IDE which should have similar look and feel like Visual Studio itself.
For this I created a "Visual Studio Style" Project by usage of AppWizard.
Now I am wondering, how to implement "Windows Float" functionality?
What I mean exactely? e.g. when you look at Visual Studio's Solution Explorer window, there is a small down arrow in the title bar. When you click on it, a menue opens and you can change the window style to "float".
This feature I want to use instead of a non modal dialog, becaue this would be much more flexible.
Has anybody an idea, how to implement. Maybe it is also implement in the IDE Framework of the MFC, but I do not know how to activate??
How to use C to make a Mathematical / Statistical compiler for my final year project. i need help. Need someone that will put me through all the steps to achieve this project of mine. i havent actually seen any recent work on it. Thanks
Because most of the compilers that are being written are either commercial, such as for Visual Studio or are open source and mostly people think open source is a synonym for buggy.
The compilers are just the translators used to translate the language or framework in machine language (let us skip the byte code for moment), so you need to write a back-end code that actually translates the high-level code in a low-level code such as machine code or assembly language. For mathematical expressions, the term is known as Mathematics Parsers. Have a look at this thread and give a look at the answers.
Howdy, I'm not so sure I understand your question.
rgb(198,93,82) looks like This , while rgb(120,27,20) looks like This
Obviously, these 2 colours are not only very different in terms of their RGB values and their HSL values for that matter, but they also appear very different to anyone not unfortunate enough to be hit with R-G colour blindness. Aren't you actually telling us yourself that the colours appear differently?
Their pantone numbers are also very different, 180 U vs 1815 C
I can't help but wondering 3 things:
1) What is the format of the input in the text-file and the exact input that produces these colours?
2) How is this being transformed into a colour by your application?
3) What difference did you find when you stepped through the conversion process in your debugger in each of the versions of the application?
I'm not familiar with the conversion process between rgb <--> pantone to know if a small difference in precision could produce such a wildly different result, or if it's an integer-only process that could suffer from a signed/unsigned error. Showing the input and the way it results in a final colour could well help, though it may not.
"When I was 5 years old, my mother always told me that happiness was the key to life. When I went to school, they asked me what I wanted to be when I grew up. I wrote down 'happy'. They told me I didn't understand the assignment, and I told them they didn't understand life." - John Lennon
In the new application, on a color button (CColorBtn), i am displaying the colors.
In the old application, they are loading this L, a and b values, converting into color values. for this, they are using some third party, i am not able to go depth in that. color is displayed on some other control, not on button in old application.
Last Visit: 1-Dec-20 17:59 Last Update: 1-Dec-20 17:59