Categories
c++ codeblock IUP Windows

First IUP hello world program in C

After succesfully setting up IUP lib reference in codeblocks its time to test some IUP coding style. Download source code below.

test_iup2

In main.c file, we create some buttons and attach event handler to it. I modify it from IUP hello world sample to show how we access other controls from a event handler that only has reference to the control sending the event.