|
-
Nov 28th, 2002, 12:23 PM
#1
Thread Starter
Hyperactive Member
How can i paint a usercontrol(Plz read the full details inside to help me)
Hi,
Now I have a procedure ApplyEffect which draws some stuff on a usercontrol. I have placed a call to this procedure inside the Usercontrol_Paint event, when i size the usercontrol to increase it, the function works gr8, but when i reduces the size, the procedure is not called coz the usercontrol has not to be painted when we reduce itz size(that i know). Now where should i place a call to the procedure so that it gets called even when i reduce the size of the usercontrol. I hope u guyz have clearly understood my porblem. (Rick Bull, i expect a reply from u)
If Not VB Then Exit
------------------------------------------------
visit me @ http://mzubair.50g.com/
-
Nov 28th, 2002, 12:32 PM
#2
Frenzied Member
Code:
Private Declare Function SendMessage Lib "user32" _
Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As _
Long, ByVal wParam As Integer, ByVal lParam As Any) As Long
Dim retval as long
Private Const WM_PAINT = &HF
retval=SendMessage(UserControl1.hWnd, WM_PAINT, 0&,0&,0&)
-
Nov 30th, 2002, 11:20 AM
#3
Thread Starter
Hyperactive Member
thanx jim
If Not VB Then Exit
------------------------------------------------
visit me @ http://mzubair.50g.com/
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
|