<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2523" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Can anybody help me to implement the following VB
code in Python. Thanks in advance.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>Private Declare Function SendMessage Lib "user32.dll" Alias
_<BR> "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long,
_<BR> ByVal wParam As Long, ByVal lParam As Long) As
Long<BR><BR>Private Const WM_PAINT = &HF<BR>Private Const WM_PRINT =
&H317<BR>Private Const PRF_CLIENT = &H4&<BR>Private Const
PRF_CHILDREN = &H10&<BR>Private Const PRF_OWNED =
&H20&<BR><BR>Private Sub Command1_Click()<BR> SendMessage
grid.hwnd, WM_PAINT, picture.hDC, 0<BR> SendMessage grid.hwnd,
WM_PRINT, picture.hDC, PRF_CHILDREN Or PRF_CLIENT <BR>Or
PRF_OWNED<BR> picture.Picture = picture.Image<BR>
picture.Refresh<BR>End Sub<BR></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Catalin</FONT></DIV>
<DIV><FONT face=Arial size=2><A
href="mailto:lcatalin@siadv.com">lcatalin@siadv.com</A></FONT></DIV></BODY></HTML>