CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2005
    Posts
    478

    A Modeless Dialog Problem

    I am writing a plugin for an iTunes application and trying to pop-up a little dialog box. When I get the word I say

    Code:
    // On dialog creation notification...
    
                HWND dlg = CreateDialogParam(
                    GetModuleHandle(TEXT("Itunesplugin.dll")), 
                    MAKEINTRESOURCE(IDD_DIALOG),
                    0, &DlgProc, LPARAM(vpd));

    And the dialog resource is defined as

    Code:
    IDD_DIALOG DIALOGEX 10, 10, 294, 153, 0
    STYLE DS_MODALFRAME | 0x0004 | WS_CAPTION | WS_SYSMENU | WS_VISIBLE | WS_POPUP
    CAPTION "Dialog"
    FONT 8, "MS Sans Serif", 700, 0 /*FALSE*/
    BEGIN
    
        /* ... Stuff... */
    
    END
    As it is a plugin app, I do not know whether iTunes does something like IsDialogMessage or something, but I do know that the presence of my dialog messes up the app, so that it isn't updated and I drag my dialog around and it looks like when you win at the windows solitaire, like this:

    http://img.photobucket.com/albums/v2...o1/loooolc.jpg

    What is the problem, and how can I fix it?
    Windows XP, Visual Studio 2008, SVN

  2. #2
    Join Date
    Aug 2005
    Posts
    478

    Re: A Modeless Dialog Problem

    Note: This problem exists whether or not the dialog was created in the same or a different thread than the main thread calling the plug-in
    Windows XP, Visual Studio 2008, SVN

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

Featured