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.14 seconds.

  1. Re: win32 - how center a control depending on it's parent position and size?

    Debugger will answer. :)

    Besides, as I wrote in my comments, non-child window (i.e. pop-up or overlapped one) must be repositioned in screen coordinates, not parent's client coordinates.
  2. Re: Correct way of getting theme font for child controls?

    GetStockObject function

    DEFAULT_GUI_FONT
  3. Re: win32 - how center a control depending on it's parent position and size?

    You are not allowed to explicitly set pop-up or overlapped window's owner. Window ownership is set only during CreateWindow or CreateDialog execution (see my sample). Once set, owner cannot be...
  4. Re: win32 - how center a control depending on it's parent position and size?

    Did you build and play with my sample? It creates a popup dialog that can be centered over its parent.
  5. Re: win32 - how center a control depending on it's parent position and size?

    void CenterInsideParent(HWND hWnd)
    {
    /* start calculating in parent's coordinates */
    HWND hParent = GetParent(hWnd);
    RECT rcp, rcc;
    GetClientRect(hParent, &rcp);
    ...
  6. Re: win32 - how center a control depending on it's parent position and size?

    The sample: 33759
  7. Re: Running silent installation with CreateProcess

    Well, I think a correct question is if it is acceptable for your users.

    A standard security policy implies user is informed about any change done in the system, and explicitly confirms that...
  8. Re: Running silent installation with CreateProcess

    What do you mean by silent? by installation?

    In case some well known installer system is implied, you have to refer to correspondent documentation.

    As for your code, it's not clear what sort of...
  9. Replies
    3
    Views
    244

    Re: [RESOLVED] noexcept

    noexcept operator (since C++11)
  10. Re: about Notification Tray and it's messages

    Everything is here:

    NOTIFYICONDATA structure



    Your notification class has to intercept your hWnd window messages, react to uCallbackMessage and route all other messages to original window...
  11. Re: ListView with CheckBox Alignment Problem

    Exactly. Considering the fact that standard control behavior strongly complicates 1, the 2 evidently seems rather natural. :)
  12. Re: ListView with CheckBox Alignment Problem

    That's how I read it:
  13. Replies
    19
    Views
    576

    Re: Crash Reading & Writing More Files

    Don't you see a repeating pattern in your code? It's time to think about introducing a function, something like that:


    void pipe_data(ifstream& infile, ofstream& outfile, size_t readSize)
    {
    ...
  14. Re: ListView with CheckBox Alignment Problem

    The situation comes from user being able to change the checkbox column width? It looks to me, freezing the width would be more natural than anything other.
  15. Replies
    33
    Views
    486

    Re: [RESOLVED] about fonts

    Font has nothing to do with color.

    SetTextColor function
    SetBkColor function
    SetBkMode function
  16. Replies
    6
    Views
    306

    Re: idle process

    The best thing you can do is to not interfere into power settings chosen by user, and just do what you can to minimize CPU clocks consumption done by your threads. Which just means a reasonable...
  17. Re: How to make button stay down in winapi?

    You were. And according to what I can see for a couple of weeks in CG forums, you desperately need to catch up with WinAPI basics, principles and terminology. So the advice seems inevitable: get some...
  18. Replies
    3
    Views
    262

    Re: Style of border of button

    BS_DEPUSHBUTTON is the style used for default button, i.e. the one to respond to Enter key. A regular button has BS_PUSHBUTTON style. You should use Spy++ to inspect the styles in other apps.
  19. Re: Load DLL from resource , and inject fails

    Any more or less complex task can be solved kinda standard way. You split your overall task to a number of simpler sub tasks. You analyse every sub task and learn the ways how to implement it and...
  20. Re: Sending Window message to a window created in the dll.

    Your thinking goes in right direction. There's one funny thing about uninitialized global variable: no matter what section it was put in with pragma, once it found uninitialized it goes into .bss...
  21. Replies
    20
    Views
    594

    Re: Selection in listbox or combobox

    You need to develop a habit of double-checking yourself with MS documentation.
    LB_SETITEMDATA says wparam is list index, and lparam is data. Yours are not. :)
  22. Re: win32 - THEME: how can i draw a diferente visual styles with controls?

    Why don't you try to find out that yourself? All you need is taking a screenshot and inspect it with some proper graphical tool.
  23. Re: win32 - THEME: how can i draw a diferente visual styles with controls?

    You seem miss the whole point. Windows is to help you to draw the currently selected theme, but not an arbitrary one. Why not? Because it is designed this way. You want your controls look something...
  24. Re: facing problem in MATLAB simple code using fprintf

    Did you try to find out if fopen() succeeds or not? If yes, did you try to find where the file was created? I can suppose it must be somewhere in system32, or maybe next to host app. Ultimately I...
  25. Re: win32 - THEME: how can i draw a diferente visual styles with controls?

    And what makes you think Windows is gonna help you with this?
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.com survey!


HTML5 Development Center