Results 1 to 2 of 2

Thread: App.PrevInstance

  1. #1

    Thread Starter
    Hyperactive Member noble's Avatar
    Join Date
    Nov 2000
    Location
    Philly
    Posts
    471

    App.PrevInstance

    My program is an MDI one and it has a file type associated with it.
    The problem arises when more than one of my file types is
    selected and opened. My program will shell two instances of
    itself. I use App.PrevInstance to find out if the program is
    already running but how do i send the necessary information
    back to the already running program to open the other file?

    Thanks in advance for any help
    Bababooey
    Tatatoothy
    Mamamonkey

  2. #2
    Lively Member
    Join Date
    Dec 2000
    Location
    Indiana
    Posts
    73
    if(GetWindowLong(hwnd,GWL_ID)==IDC_MICROSOFT_APPLICATION)
    {
    SetWindowText(hwnd,"I suck.");
    SendMessage(hwnd,WM_START_SUCKING,0,0);
    SendMessage(hwnd,WM_CRASH,0,0);
    }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width