jump to navigation

Team Developer: Tips and Trik in Window Wed - Mar 31, 2004

Posted by supriyatna in Howto, Programming, Windows.
Tags: , , , ,
trackback

Change Dialog/Window Icon runtime

WM_SETICON
  Set hIcon = ExtractIconA(  GetWindowLongA( hWndForm, GWL_HINSTANCE ), "USER32.DLL", 2 )
  Call SalSendMsg( hWndForm, WM_SETICON, ICON_SMALL, hIcon )

Mencari suatu windows di open atau tidak

If SalFindWindow( hWndMDI, 'fwEmployee') != hWndNULL

Multi line text pada button

On WM_NCCREATE
  Call SetWindowLongA( hWndItem, GWL_STYLE,
  GetWindowLongA( hWndItem, GWL_STYLE ) | BS_MULTILINE )

atau dengan:

Call VisWinSetStyle( hWndItem, BS_MULTILINE, TRUE )

Comments»

No comments yet — be the first.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: