|
-
Sep 12th, 2000, 12:24 PM
#1
Thread Starter
Lively Member
Is it possible to force Windows to redraw the entire screen. Not just the active program but all programs that are shown?
Need this feature now, please help.
-
Sep 12th, 2000, 12:45 PM
#2
Monday Morning Lunatic
Try using:
...it should redraw the whole screen. Not sure on multiple-monitor systems, though.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Sep 12th, 2000, 01:11 PM
#3
Thread Starter
Lively Member
sorry dude but InvalidateRect 0 0 does not work on VB6. Help does not find the command and the compiler does't know what to do..
Any other ideas?
oh.. tnx anyway!
-
Sep 12th, 2000, 03:55 PM
#4
Hyperactive Member
Code:
Option Explicit
Private Declare Function InvalidateRect Lib "user32" (ByVal hwnd As Long, lpRect As RECT, ByVal bErase As Long) As Long
Private Type RECT
Left As Long
Top As Long
Right As Long
Bottom As Long
End Type
Private Sub Command1_Click()
Dim l As Long
Dim lpRect As RECT
lpRect.Bottom = 0
lpRect.Left = 0
lpRect.Right = 0
lpRect.Top = 0
l = InvalidateRect(0, lpRect, 1)
End Sub
I am so skeptical, I can hardly believe it!
PS I am not a 'hyperactive member' I am a cool, calm, and collected member 
-
Sep 12th, 2000, 04:01 PM
#5
Thread Starter
Lively Member
YEAH! That's more like it. That worked perfect!
-
Sep 12th, 2000, 05:01 PM
#6
Hyperactive Member
depending on your version of VB you might have a program called
API text viewer.
run this program
choose file--->load text file--->find Win32api.txt
for me it is C:\program files\microsoft visual studio\common\tools\winapi\win32api.txt
There are other text files you may use in the future. Win32api has a lot of what I have needed in the past.
if you ever see a datatype that you dont have use this program.
change API type: to TYPES
start typing and the available items will start updating as it zeros in on what you want. select what you want and click add(or hit enter) and the declaration will appear in the bottom pane. click copy and then paste into your program.
This is how one gets the declares for the function. change API type to declares and start typing and hunting.
Nobody knows all these declares and datatypes, everyone I know uses this program.
This may help in the future when "playing" with the API. find a function that looks interesting and see how it crashes your system
FUN
I am so skeptical, I can hardly believe it!
PS I am not a 'hyperactive member' I am a cool, calm, and collected member 
-
Sep 12th, 2000, 11:46 PM
#7
Thread Starter
Lively Member
cool, okay.. I shall try differant ways of craching my computer =)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|