Swing is the GUI API for Java. Basically, you use Swing in Java to create GUI applications. It generally has the same idea as windows programming; you have to deal with events.
Codah
Type: Posts; User: Codah
Swing is the GUI API for Java. Basically, you use Swing in Java to create GUI applications. It generally has the same idea as windows programming; you have to deal with events.
Codah
HWND is nothing more than a long integer identifiying a window that you created. Windows will supply this for you.
WPARAM and LPARAM are parameters part of the MSG structure
struct typedef...
So you would only use WM_PAINT if you wanted to do some specific drawing tasks? In other words, windows will always do the basic drawing job?
When the window is moved, resized, obstructed by another window, etc... windows will send your application a WM_PAINT message in order for you to redraw the invalid region.
case WM_PAINT:
{
...