flat assembler
Message board for the users of flat assembler.

flat assembler > Windows > custom frame

Author
Thread Post new topic Reply to topic
Ali.Z



Joined: 08 Jan 2018
Posts: 222
wondering if there is anyway to get custom window frame and client size, as well as shape and color.

i know there is WM_NCCALCSIZE, WM_NCCREATE, and WM_NCPAINT.
but it seems to be mysterious, and there is no good documentation for these. (not msdn nor the old win32 help file)

and no matter what/how i try to handle them properly, it just crash or does nothing. (with exception for WM_NCPAINT seems to work but after window is resized or moved it does not)

i also tried using CreateRectRgn while processing the non-client create, but doesnt seem to work. (using private device context)

saw some programs (written using gui libraries) have different shape than the default one. (default is rectangular with rounded corners)

the aim is not to alter window shape completely, nope just to have flat frame (not rounded) and reduced window frame size. (including titlebar/caption)

maybe frame size 1 pixel, and title bar 16 pixels.

_________________
Asm For Wise Humans
Post 20 May 2019, 03:45
View user's profile Send private message Reply with quote
Ali.Z



Joined: 08 Jan 2018
Posts: 222
ehm never mind, i forgot to set the new window region.

mission accomplished, LOL.

_________________
Asm For Wise Humans
Post 20 May 2019, 08:10
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2019, Tomasz Grysztar.

Powered by rwasa.