closing the Save_As dialog kills the application?!?

This is a discussion on closing the Save_As dialog kills the application?!? within the Windows Programming forums, part of the Platform Specific Boards category; Hi, I have a client application that I want to control. There are some buttons on that application's toolbar. Say ...

  1. #1
    Registered User
    Join Date
    May 2004
    Posts
    1

    closing the Save_As dialog kills the application?!?

    Hi,

    I have a client application that I want to control. There are some buttons on that application's toolbar. Say clicking buttonA will process some stuff and ultimately display a Save_As dialog box.

    In my own win32 program, I have a toolbar with 2 buttons. Clicking the first button emulates clicking buttonA on the other application (which means a Save As dialog box will appear). Clicking the second button emulates clicking the "Save" button on the dialog box...

    Now, the WEIRD thing is: If I click the first button, then the 2nd button of my program myself, everything is fine. But, if I programmatically emulate the clicking of the two buttons, the dialog box closes, nothing is saved, and the client application gets killed too! Why is that?? I could provide the spy++ messages on the dialog box "Save" button if needed.

    Any comments will be greatly appreciated!
    Yee Seng.

  2. #2
    Registered User dalek's Avatar
    Join Date
    May 2003
    Posts
    135
    Can you post some code?

  3. #3
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    Sounds like you are sending invalid messages in the emulation of the button clicks.

    Kuphryn

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Application closing by default?
    By Blackroot in forum Windows Programming
    Replies: 2
    Last Post: 07-31-2008, 01:34 AM
  2. Replies: 9
    Last Post: 02-13-2008, 01:59 PM
  3. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM
  4. MFC dialog application - how to update two windows
    By Unregistered in forum Windows Programming
    Replies: 1
    Last Post: 10-23-2001, 01:54 AM
  5. can we minimize a dialog based application
    By vicky in forum Windows Programming
    Replies: 6
    Last Post: 09-27-2001, 07:59 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21