Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Igor Vartanov

Page 1 of 80 1 2 3 4

Search: Search took 0.19 seconds.

  1. Re: How to get the text of an "EDIT" control from another thread?

    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,...
  2. Re: How to get the text of an "EDIT" control from another thread?

    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...
  3. Re: How to get the text of an "EDIT" control from another thread?

    Man, did you ever hear about notifications? EN_CHANGE? EN_UPDATE? I guess I already uttered the word before.
  4. Re: How to get the text of an "EDIT" control from another thread?

    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...
  5. Re: How to get the text of an "EDIT" control from another thread?

    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...
  6. Re: How to get the text of an "EDIT" control from another thread?

    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...
  7. Re: How to get the text of an "EDIT" control from another thread?

    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...
  8. Re: How Can I move MDI child window out of the frame window

    I wonder how many times it to take to understand that it doesn't work this way. :)

    CreateMDIWindow function
    WM_MDICREATE message



    Any window having WS_CHILD style is limited by its parent...
  9. Re: How to get the text of an "EDIT" control from another thread?

    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...
  10. Re: How to get the text of an "EDIT" control from another thread?

    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...
  11. Re: How to get the text of an "EDIT" control from another thread?

    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...
  12. Re: how to add .dll and .lib file from installed location of a program.

    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.


    Running...
  13. Re: How to get the text of an "EDIT" control from another thread?

    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...
  14. Re: how to add .dll and .lib file from installed location of a program.

    Add to what and what for?
  15. Replies
    8
    Views
    289

    Re: sending usigned char to listbox

    As long as this is about file, the non-askii bytes are most probably BOM (http://en.m.wikipedia.org/wiki/Byte_order_mark)
  16. Re: How to get the text of an "EDIT" control from another thread?

    If you want to get window text, you just GetWindowText
  17. Replies
    3
    Views
    281

    Re: Repaint problem in custom control

    ... 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.
  18. Re: How to access or configure PCI card using WinAPI in user mode.

    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. :)
  19. Re: How to display a bitmap on my Window?

    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...
  20. Replies
    7
    Views
    248

    Re: NtQuerySystemInformation ...

    The code compiles perfectly fine:



    // 74.cpp
    #include <Windows.h>
    // one can also use Winternl.h if needed
    //#include <Winternl.h> // for UNICODE_STRING and SYSTEM_INFORMATION_CLASS...
  21. Re: win32 - how the ::DrawText() RECT can change the Region size?

    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...
  22. Re: win32 - how the ::DrawText() RECT can change the Region size?

    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.
  23. Re: VC project link error not added lib (can not find mylib.lib)

    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...
  24. Re: VC project link error not added lib (can not find mylib.lib)

    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....
  25. Re: [win32] - avoid flicker and do a correct redraw

    Clipping children literally means that parent does not repaint itself under children.



    Therefore, children themselves are fully responsible for their looks including background.
Results 1 to 25 of 2000
Page 1 of 80 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center