Main Menu

DDT warning

Started by docroger, July 24, 2025, 12:32:23 PM

Previous topic - Next topic

José Roca

#15
I have ported to AfxNova CImageCtx, and image control similar to VB6 Picture Box. It uses GDI+ and can be used to display pictures inside a "form". I have attached a demo that demonstrates some things of interest that may be unfamiliar to you, like anchor resizing (we anchor the controls and we don't need to worry about resizing the controls in WM_SIZE), the use of the IFileOpenDialog and the use of function pointers. Just trying to be a little didactic. Instead of IFileOpenDialog you can use the old AfxOpenFileDialog function or the VB6-like OpenFileDialog (in OpenSaveFile.inc). OpenFileDialog allows to center the dialog using a hook, like DISPLAY OPEN FILE does, but here is optional.

Documentation: https://github.com/JoseRoca/AfxNova/blob/main/docs/Graphics%20/CImageCtx%20Class.md

José Roca

#16
The lovers of coloured buttons, will enjoy CXpButton. It allows to set colors for everything. https://github.com/JoseRoca/WinFBX/blob/master/docs/Windows%20GUI/CXpButton%20Class.md

And also up to three images for normal, hot and disabled states. Also demonstrates how to implement a custom control using a class.

There is also a masked edit control:
https://github.com/JoseRoca/WinFBX/blob/master/docs/Windows%20GUI/CMaskedEdit%20Class.md