Results 1 to 16 of 16

Thread: Flip with CARE

  1. #1

    Thread Starter
    Fanatic Member vbPoet's Avatar
    Join Date
    Feb 2005
    Location
    Searching ..
    Posts
    669

    Flip with CARE

    I want to flip my screen to 180 degree..
    not by taking its picture and then fliping it or by using Stretchblt,bitblt or something like that ....

    instead i want to control this through other means like Vga driver or something like that so that i will not feel degradation of performance


    thx in Advance
    Last edited by vbPoet; May 11th, 2005 at 09:01 AM.

  2. #2
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: Flip with CARE

    Here ya go:

    VB Code:
    1. Private Declare Function InvertRect Lib "user32" (ByVal hdc As Long, lpRect As Rect) As Long
    2. Private Declare Function GetWindowDC Lib "user32" (ByVal hwnd As Long) As Long
    3. Private Declare Function GetClientRect Lib "user32" (ByVal hwnd As Long, lpRect As Rect) As Long
    4. Private Declare Function GetDesktopWindow Lib "user32" () As Long
    5. Private Type Rect
    6.     Left As Long
    7.     Top As Long
    8.     Right As Long
    9.     Bottom As Long
    10. End Type
    11. Private rct As Rect
    12. Private Sub Command1_Click()
    13.     GetClientRect GetDesktopWindow, rct
    14.     InvertRect GetWindowDC(GetDesktopWindow), rct
    15. End Sub

  3. #3

    Thread Starter
    Fanatic Member vbPoet's Avatar
    Join Date
    Feb 2005
    Location
    Searching ..
    Posts
    669

    Re: Flip with CARE

    Jacob

    though its cool...


    But read my thread with care ....
    I want something else....

    I want that Start button should be displayed at upper right corner and it should be inverted.... (** 180 degree.. **)


    Probably i need to mess with VGA driver or something else..

  4. #4
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: Flip with CARE

    Don't think that's possible. But I could be wrong.

  5. #5
    Junior Member
    Join Date
    Mar 2005
    Posts
    18

    Re: Flip with CARE

    You mean as if the monitor were upside down? Why?

  6. #6
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Flip with CARE

    Some compaq video cards had a feature built in, and there are also monitors that can be inverted, but that would probably be the only way to do it.

  7. #7
    Junior Member
    Join Date
    Mar 2005
    Posts
    18

    Re: Flip with CARE

    Quote Originally Posted by dglienna
    there are also monitors that can be inverted, but that would probably be the only way to do it.
    What about headstands ?

    Quote Originally Posted by dglienna
    Some compaq video cards had a feature built in
    I think most of them support this feature. I tried it now, got disoriented, could not find my way back and was overtaken by a panic attack
    Last edited by Xiarcel; May 11th, 2005 at 02:40 PM.

  8. #8

    Thread Starter
    Fanatic Member vbPoet's Avatar
    Join Date
    Feb 2005
    Location
    Searching ..
    Posts
    669

    Re: Flip with CARE

    NO nO...
    I want to do it programatically ..
    any idea about controlling VGA or monitor driver ....

  9. #9
    Frenzied Member moinkhan's Avatar
    Join Date
    Jun 2000
    Location
    Karachi, Pakistan
    Posts
    2,011

    Re: Flip with CARE

    Well...
    if your VGA doesn't support it.. then i doubt it's not possible doing it directly... bitblt should be the solution then..

  10. #10
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: Flip with CARE

    that didnt flip my screen..just inverted my colors..: D

  11. #11
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: Flip with CARE

    Put the monitor upside down

  12. #12
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: Flip with CARE

    i didnt know i needed the flipmonitor api!

  13. #13
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: Flip with CARE

    Spin the yoke around on the CRT tube - should work fine!

    Put a little step motor on it and plug it into the serial port to control it

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  14. #14
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: Flip with CARE

    Quote Originally Posted by |2eM!x
    i didnt know i needed the flipmonitor api!
    There's also the GetDrunk API that gives you a similar effect.

    Seriously though, if your Super VGA card doesn't support it (VGA is old by the way) then you might as well stick with my code.

  15. #15
    Frenzied Member moinkhan's Avatar
    Join Date
    Jun 2000
    Location
    Karachi, Pakistan
    Posts
    2,011

    Re: Flip with CARE

    I have a better idea now..

    y don't u just sit on your HEAD?

  16. #16

    Thread Starter
    Fanatic Member vbPoet's Avatar
    Join Date
    Feb 2005
    Location
    Searching ..
    Posts
    669

    Re: Flip with CARE

    Download software from www.portrait.com named Pivot..
    look what does it ....
    and how it is sof fast

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