On Wednesday, 17 March 2021 at 06:39:26 UTC, Imperatorn wrote:
Good that you solved it, that wasn't what I thought the
solution would be 👀
I was sure about i can solve this through NM_CUSTOMDRAW. Because,
in VB .net, we can change back color & fore color of button. On
the same time, there i
On Wednesday, 17 March 2021 at 00:51:05 UTC, Vinod K Chandran
wrote:
On Tuesday, 16 March 2021 at 19:42:26 UTC, Imperatorn wrote:
At last, i found the answer myself. There is a item called
dwDrawStage in NMCUSTOMDRAW structure. If value of dwDrawStage
is equal to CDDS_PREERASE, call SetB
On Tuesday, 16 March 2021 at 19:42:26 UTC, Imperatorn wrote:
At last, i found the answer myself. There is a item called
dwDrawStage in NMCUSTOMDRAW structure. If value of dwDrawStage
is equal to CDDS_PREERASE, call SetBkMode with transparent and
call SetTextColor. Then draw text with Dr
On Tuesday, 16 March 2021 at 19:15:02 UTC, Vinod K Chandran wrote:
On Tuesday, 16 March 2021 at 18:35:00 UTC, Imperatorn wrote:
I see 😁
Do you get CLR_INVALID in return?
That results might be wrong. So i printed them in hex. These
are the hex results.
Set Text color result -
Set T
On Tuesday, 16 March 2021 at 18:35:00 UTC, Imperatorn wrote:
I see 😁
Do you get CLR_INVALID in return?
From that results, second one contains my color value.
Set Text color result - 0233FF66
RGB(102, 255, 51) is the color.
66 = 102
FF = 255
33 = 51
On Tuesday, 16 March 2021 at 18:35:00 UTC, Imperatorn wrote:
I see 😁
Do you get CLR_INVALID in return?
That results might be wrong. So i printed them in hex. These are
the hex results.
Set Text color result -
Set Text color result - 0233FF66
Set Text color result -
Set Te
On Tuesday, 16 March 2021 at 18:35:00 UTC, Imperatorn wrote:
I see 😁
Do you get CLR_INVALID in return?
As far as i know this is the value of CLR_INVALID - 4294967295.
And these are the results i got from my function.
Set Text color result - 0
Set Text color result - 36962150
Set Text color
On Tuesday, 16 March 2021 at 18:27:54 UTC, Vinod K Chandran wrote:
On Tuesday, 16 March 2021 at 17:45:09 UTC, Imperatorn wrote:
Omg the pain. Are you forced to use raw win api for this?
Not at all. It's my hobby project. I choose raw win api. It's a
fun.
I see 😁
Do you get CLR_INVALID in
On Tuesday, 16 March 2021 at 17:26:01 UTC, Vinod K Chandran wrote:
Hi all,
I am creating a Button class with Win32 API functions. So far
so good. I am using NM_CUSTOMDRAW message to change the back
color of my buttons. It's really easy to change the back color
in this way. But I can't change t
On Tuesday, 16 March 2021 at 17:45:09 UTC, Imperatorn wrote:
Omg the pain. Are you forced to use raw win api for this?
Not at all. It's my hobby project. I choose raw win api. It's a
fun.
On Tuesday, 16 March 2021 at 17:26:01 UTC, Vinod K Chandran wrote:
Hi all,
I am creating a Button class with Win32 API functions. So far
so good. I am using NM_CUSTOMDRAW message to change the back
color of my buttons. It's really easy to change the back color
in this way. But I can't change t
Hi all,
I am creating a Button class with Win32 API functions. So far so
good. I am using NM_CUSTOMDRAW message to change the back color
of my buttons. It's really easy to change the back color in this
way. But I can't change the text color of my button. This is my
pseudo code.
```
uint setBt
12 matches
Mail list logo