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

Search:

Type: Posts; User: Dietmar

Page 1 of 3 1 2 3

Search: Search took 0.08 seconds.

  1. Replies
    0
    Views
    3,856

    Kill/Set timeout of WNetAddConnection2?

    Can anybody tell me how to...

    a) ...set the timeout for mapping network drives using WNetAddConnection2()?
    b) ...kill the connection process before timeout?
  2. Thank you, it works. Here is my code: ...

    Thank you, it works.
    Here is my code:



    void CNetworkDlg::OnMouseMove(UINT nFlags, CPoint point)
    {
    ...
    POINT pt = point;
    ClientToScreen(&pt);
  3. CTreeCtrl Drag&Drop: How to stay within tree?

    There is a good article in Codeguru about Drag & Drop in a tree view control:
    http://www.codeguru.com/treeview/drag_drop.shtml

    But I want to limit the drag operation to my tree control area.
    How...
  4. Replies
    16
    Views
    9,581

    Yeah, this does the trick! I have no idea why I...

    Yeah, this does the trick!
    I have no idea why I was too stupid to see that before.
    Now we're both happy I guess. :)
  5. Replies
    16
    Views
    9,581

    I tried to process WM_ACTIVATE but it doesn't...

    I tried to process WM_ACTIVATE but it doesn't work. I put a Beep() into my overriden OnPaint() to see if I had produced an infinite loop. I didn't. I am quite happy with my solution now but I am...
  6. Replies
    16
    Views
    9,581

    @Sam: I feel sorry that we talked at...

    @Sam:
    I feel sorry that we talked at cross-purposes.
    My problem was not about clicking on tabs.

    @Everybody:
    However, now I found out that the solution is much easier.
    I just had to override...
  7. Replies
    16
    Views
    9,581

    Well, there must be some misunderstanding here....

    Well, there must be some misunderstanding here.
    OnSelchangingTab and OnSelchangeTab apply to the tab control's parent window - my main dialog.
    They get called when you change the tab page, but not...
  8. Replies
    16
    Views
    9,581

    I don't get the point from your code, Sam. An...

    I don't get the point from your code, Sam.

    An example:

    1. My app is running, my tab page and my embedded list control are visible
    2. I click on the taskbar to pop up another program (let's say...
  9. Replies
    16
    Views
    9,581

    Thanks to "real name" for that codeproject link,...

    Thanks to "real name" for that codeproject link, which helped my to find a solution.
    Any comments are appreciated.

    I created my own class "CTabCtrlEx", derived from CTabControl.
    CTabCtrlEx has...
  10. Replies
    16
    Views
    9,581

    Actually the program consists of three dialogs,...

    Actually the program consists of three dialogs, all created by the ressource editor.
    The main dialog contains the tab control. The other two dialogs are the tab pages.
    On these two dialogs (tab...
  11. Replies
    16
    Views
    9,581

    No repaint of CListCtrl on CTabCtrl

    I use a tab control (CTabCtrl) in my dialog based MFC application .
    On one of the tab pages (CDlg) I have placed a list control (CListCtrl).

    My problem is that this list control doesn't get...
  12. FindWindow() is somehow working with the...

    FindWindow() is somehow working with the parameter CabinetWClass instead of ExploreWClass. But I am not satisfied with this solution because it is not guaranteed that "C:\" is the window title or...
  13. How to start file explorer on half of the screen?

    Hello out there,

    I use CreateProcess() to start the windows file explorer. Now I would like the explorer to occupy exactly the right half side of the screen. Unfortunately the STARTUPINFO members...
  14. Come on, guys. I can't believe that really...

    Come on, guys.
    I can't believe that really nobody ever tried to catch a right-doubleclick on a tree control.
  15. Right Double-Click on tree control does NOTHING!

    The class wizard offers a message handler for the NM_RDBLCLK notification, but this function "OnRdblclkTree" is never called whatever I do.
    A spy on my tree control showed me that a right...
  16. Replies
    1
    Views
    655

    Busy-Dialog doesn't work :-(

    Hi.
    I would like to display a modeless "busy-dialog" when my main thread is calculating.
    Therefore I start a worker thread:
    ...
    // Start thread to show busy-dialog...
  17. Replies
    1
    Views
    648

    Autostart code AFTER dialog appears?

    Hello,

    is there any place I can put some code
    (in a dialog based MFC application)
    that executes automatically AFTER my
    dialog appears?

    Normally an application starts and waits
    e.g. for a...
  18. Re: Waiting for a DOS application to terminate?

    Do you mean this?

    WaitForSingleObject
    (hHandle, // = hProcess from struct PROCESS_INFORMATION
    timeout);


    In Win98 the DOS box is still visible after termination.
    Does this work anyway?
  19. Waiting for a DOS application to terminate?

    Hello.

    I want to write a windows frontend for a DOS tool.

    So I call the DOS app and the DOS box pops up.
    Then I have to wait until it has finished
    before I can proceed. But how do I know?
    ...
  20. How to prevent automatic DOS window closure?

    Hello,

    I call a DOS program from my MFC application under WinNT.
    How can I prevent that the DOS window automatically disappears when finished?

    The problem is that my DOS program does
    not work...
  21. Replies
    3
    Views
    610

    Re: How to hide a button behind a bitmap?

    Yes, you can do:
    ShowWindow(SW_HIDE) on the button.
    But then the button is gone!
    It should still work.
  22. Replies
    3
    Views
    610

    How to hide a button behind a bitmap?

    Hello.

    I want to hide a button behind a bitmap.
    The tab order determines whether the bitmap covers
    the button or vice versa at program start.

    But when I click the bitmap then the hidden...
  23. Replies
    3
    Views
    1,123

    Re: How can I rename a list view column?

    Good try, but doesn´t work.
    Actually it does nothing at all.
    Although I understand that it should...
  24. Replies
    3
    Views
    1,123

    How can I rename a list view column?

    Hello,

    I would like to display search results of a phonebook in a list view control (report style).
    When my search string starts with an alphabetical char, the colums should be
    "Name" (sorted)...
  25. Replies
    5
    Views
    1,646

    Re: CString in worker thread -> memory leak!

    Bingo - that´s the point!!!
    My thread ended up with:

    AfxEndThread(0);
    return 0;

    I removed AfxEndThread and the memory leak problem was history.
    Can anybody explain the background?
Results 1 to 25 of 64
Page 1 of 3 1 2 3





Click Here to Expand Forum to Full Width

Featured