CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: Wm_stylechanged

  1. #1
    Join Date
    Apr 2001
    Location
    San Diego CA
    Posts
    378

    Wm_stylechanged

    Our application when checked with spy seems to be sending this message endlessly. We what to be able to track it down in code but are not able to ..
    Any suggestions?
    | r r| h h|d

  2. #2
    Join Date
    Feb 2000
    Location
    San Diego, CA
    Posts
    10,354

    Re: Wm_stylechanged

    WHat do you mean track it down ? The originator of this message ?

  3. #3
    Join Date
    May 1999
    Location
    DELAWARE, USA
    Posts
    9,917

    Re: Wm_stylechanged

    Why is that bothering you? Changing visibility of the window for example will send this message.
    There are only 10 types of people in the world:
    Those who understand binary and those who do not.

  4. #4
    Join Date
    Apr 2001
    Location
    San Diego CA
    Posts
    378

    Re: Wm_stylechanged

    Well it was being send even when no document is open and the application is sitting idel. We want to make sure we are no changing the STYLE repeatedly in the main application timer.

    Anyways I tracked it down to ..

    If I comment this line out I don't see that. Why would this cause WM_STYLECHANGED ?

    PHP Code:
    m_pMainWnd->DragAcceptFiles(bEnable); 
    Anyways after looking into MSDN it say DragAcceptFiles should be in InitInstance and it was in OnUpdateFileNew which ofcourse is going to be called always. I moved it there and I don't see that message.

    We are still getting a WM_NOTIFY
    Last edited by voidspace; September 14th, 2005 at 07:41 PM.
    | r r| h h|d

  5. #5
    Join Date
    May 1999
    Location
    DELAWARE, USA
    Posts
    9,917

    Re: Wm_stylechanged

    DragAcceptFiles changes extended window style to WS_EX_ACCEPTFILES.
    Many action that require changing window functionality or state change either style or extended style.
    About WM_NOTIFY, could you elaborate?
    There are only 10 types of people in the world:
    Those who understand binary and those who do not.

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)