They are handled by the application layer, and the results passed to the library. Like I said, the library typically doesn't get involved in the user interface side of things, it does its job and the main application handles the user interface. This means the application programmer has more work to do, but it's a lot more flexible and means its not restricted to a single, or "only supported" gui frameworks.
Bookmarks