I have experience with FutureBasic (for Macintosh), and ThinBasic (for Windows).
(Also VIC20 and Commodore 64, but we're not talking about antique languages, are we?)
In those languages we must write code to:
(1) open a window
(2) display your message
(3) wait for keypress, mouse click, or pause a few seconds
(4) close window
(5) handle errors if any
(6) exit program
I imagine most every programming environment requires that we write a similar sequence of commands.
Whatever programming language you choose, you must get friendly with the command set. You must read the user manual. It's the only way you'll know what is possible.
The package comes with sample routines. These demonstrate how to do common tasks (such as your example above).
ThinBasic is a scripted language. Free to download and use (last I heard). It was made to interact with Windows routines. It draws windows and menus which appear identical to those created by Windows OS. I have no experience with C so I can't make comparisons. But I believe there are converter routines discussed at the ThinBasic website.
www.thinbasic.com