Type: Posts; User: Igor Vartanov
Search took 0.19 seconds.
April 17th, 2015, 02:37 AM
It depends on what control data required by worker is. You may deal with quite a loaded list, but your interest is in a label of single selected item, or just its index. In case of multi-selection,...
April 16th, 2015, 03:55 PM
Of course yes, all controls do that. There are so called "old school" controls, like edit box, list box, combo box, button, static, those ones act like I just demonstrated, sending...
April 16th, 2015, 02:50 PM
Man, did you ever hear about notifications? EN_CHANGE? EN_UPDATE? I guess I already uttered the word before.
April 16th, 2015, 02:53 AM
This is what I told you about: the design issue. Worker thread, especially multiple threads, extensively communicating with GUI elements is prone to cause troubles during product maintenance. Not...
April 15th, 2015, 06:55 AM
There is no such assumption, otherwise this would make entire Windows GUI multi-thread awareness completely senseless. So I don't take this serious. In case something fails somehow in some Windows...
April 15th, 2015, 06:27 AM
The very fact that you use the path for file deletion obtained directly from UI control indicates some flaw in operation logic design. (For example, on edit control content change you might test the...
April 14th, 2015, 04:19 PM
Okay, you say GetWindowText may conflict with SetWindowText, and I say it won't due to those being implemented atomic. The "microsoft smart enough" stuff, etc. What's next? And please save on...
April 14th, 2015, 07:36 AM
I wonder how many times it to take to understand that it doesn't work this way. :)
Any window having WS_CHILD style is limited by its parent...
April 14th, 2015, 06:52 AM
If you use PostMessage, nothing prevents you from deleting the file in GUI thread context, i.e. the pseudo-code is to be executed in GUI thread instead of your worker. Is there anything that makes...
April 13th, 2015, 08:45 AM
A real experience is a great thing. A much better thing is explaining the case and revealing its root cause. Instead of just hearing "don't do that", it would be better to hear "don't do that because...
April 13th, 2015, 08:29 AM
Nope. I meant exactly what I said. The question of getting the text from control will be always answered by me as "use SendMessage unless you have a real reason not to do that". ;)
This is why I...
April 13th, 2015, 05:12 AM
There in VS2010+ are project properties VC++ Directories, where you can specify Library and Executable paths. Add your .lib folder to Library paths, and .dll folder to Executable paths.
April 13th, 2015, 04:56 AM
A generic solution... You might be scared of the one, but it's sending message to the control for text retrieval.
Of course more paranoid approaches may be developed when you have some central...
April 12th, 2015, 02:02 AM
Add to what and what for?
April 12th, 2015, 01:54 AM
As long as this is about file, the non-askii bytes are most probably BOM (http://en.m.wikipedia.org/wiki/Byte_order_mark)
April 12th, 2015, 01:46 AM
If you want to get window text, you just GetWindowText
April 9th, 2015, 01:27 AM
... is absolutely useless. Please provide the simplistic project that replicates your problem. As well, a more decent description of what goes wrong and under what conditions would be nice.
April 8th, 2015, 01:20 AM
Please do not double-post. Your not replied first message indicates that nobody here is able/willing to help. So just wait, patience is a virtue. :)
April 8th, 2015, 01:13 AM
You cannot control the way how STATIC draws the bitmap, i.e. keeping aspect ratio may require for control resizing, or doing some cropping will demand for preparing a special bitmap based on the...
April 6th, 2015, 03:11 AM
The code compiles perfectly fine:
// one can also use Winternl.h if needed
//#include <Winternl.h> // for UNICODE_STRING and SYSTEM_INFORMATION_CLASS...
April 5th, 2015, 04:50 PM
I do not see how your DrawText issue relates to the other snippet. I commented the RECT issue which was clearly obvious. In case you prefer not to offset your rect, I believe you should init the one...
April 5th, 2015, 03:16 PM
The last two members of RECT are not width and height. When you "change the position of the text" you actually downsize your rect, but not offset the one.
April 4th, 2015, 12:04 PM
Have no idea what you mean by that.
As I said before, the answer is obvious. "Cannot open file" unambiguously indicates that linker is instructed to link the lib. As you don't have it built, the...
April 1st, 2015, 02:58 AM
An obvious answer would be that your project sets the additional library dependencies not only programmatically. Or your changes are made in some unrelated source code.
See the attached sample....
April 1st, 2015, 02:19 AM
Clipping children literally means that parent does not repaint itself under children.
Therefore, children themselves are fully responsible for their looks including background.
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.