Results 1 to 7 of 7

Thread: new project need help moving windows

  1. #1

    Thread Starter
    Fanatic Member Crash893's Avatar
    Join Date
    Dec 2005
    Posts
    930

    new project need help moving windows

    Hi all,

    I wanted to make something usefully for work while I have some downtime


    I have two monitors and i wanted to put some extra buttons up at the top of each window ( by the min Max and close) that would help me move the window over to the other monitor or back or expand it across both

    I saw a program that did it but i would much rather make my own

    Example:



    Im not even sure where to begin with this

    I guess ill need to poll all the open windows then inject this code some how

    any ideas would be greatly appreciated

  2. #2
    Smitten by reality Harsh Gupta's Avatar
    Join Date
    Feb 2005
    Posts
    2,938

    Re: new project need help moving windows

    Show Appreciation. Rate Posts.

  3. #3

    Thread Starter
    Fanatic Member Crash893's Avatar
    Join Date
    Dec 2005
    Posts
    930

    Re: new project need help moving windows

    but i want to added to windows that are not my application

    infact to all the windows that are currently up

  4. #4

    Thread Starter
    Fanatic Member Crash893's Avatar
    Join Date
    Dec 2005
    Posts
    930

    Re: new project need help moving windows

    Post.BUMP;

  5. #5

    Thread Starter
    Fanatic Member Crash893's Avatar
    Join Date
    Dec 2005
    Posts
    930

    Re: new project need help moving windows

    no one?

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: new project need help moving windows

    I can only tell you that you ought to start with a search on creating shell extensions for windows in C#.

    I don't know much more than that.

  7. #7
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: new project need help moving windows

    Here's a start:

    http://www.thescripts.com/forum/thread261633.html

    You need to subclass every window and handle any WM_NCPAINT messages. You should receive a handle to the DC of the window's non-client area, which you can then paint to.

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