Quantcast
Channel: VBForums - API
Viewing all articles
Browse latest Browse all 168

Creating and deleting buttons with Win32 API

$
0
0
Hello. I have created a win mines game alike in assembler, so i use win32 apis. It is almost finished, but i have a problem when you change a different level ("Juego->Nivel" in Menu). I want to delete buttons with DeleteObject and create them again according to the level. As msdn says it is only valid to logical pen, brush, font, bitmap, region or palette; not for buttons. That's what I want to ask here: do you know a way to delete effectively buttons with win32 apis? Maybe apart to use DeleteObject, there would be needed to free any related memory heap. I have thought in create all the buttons needed in the game and hide those not required in the related level, but I think that there may be a way to create and delete buttons in a right way.

If I have developed it in assembler, why ask it here? Well excuse me, I think that visual basic is a great font of resources in Windows and many people use win32 apis in vb too. Maybe anyone can answer me.

Thank you.
Attached Files

Viewing all articles
Browse latest Browse all 168

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>