justin = {
main feed
,
music
,
code
= {
cockos
,
reaper
,
wdl
,
ninjam
,
jsfx
,
more
}
,
askjf
,
pubkey
};
Ask Justin Frankel
No reasonable question unanswered since 2009!
Suggested topics: programming, music, sleep, coffee, etc.
Note: please do not ask questions about REAPER features, bugs or scheduling, use the
forums
instead.
Name:
Ask:
Human (enter yes):
[
back to index
] | [
unreplied
] | [
replied
] | [
recent comments
] | [
all
]
Question:
Which api did you used to add button to titlebar in reaper?
Asked by Ruchira (175.157.140.x) on January 17 2026, 6:03pm
Reply on January 17 2026, 9:14pm:
there's no API, it's a pain. There's classic code to use when DWM is disabled, which uses a subclass and WM_NCPAINT. Then there's the DWM mode which creates a separate layered window and parents it to the window etc. maybe I can put together a bunch of example code but also maybe a LLM already has the info.
Comments:
Posted by Ruchira (175.157.140.x) on January 18 2026, 5:09pm:
I thought you were using DwmExtendFrameIntoClientArea function and custom drawing on titlebar. How did you attached another layered window to titlebar?
Posted by
Justin
on January 18 2026, 6:27pm:
nope, that might be preferable lol... we createwindow it with the window as a parent, then in WM_WINDOWPOSCHANGED/WM_WINDOWPOSCHANGING reposition, calculating the position using DwmGetWindowAttribute DWMWA_CAPTION_BUTTON_BOUNDS and DWMWA_EXTENDED_FRAME_BOUNDS to determine the postion
Comment:
Your Name:
-- Site Owner's Name:
(for human-verification) Comment:
[
back to index
] | [
unreplied
] | [
replied
] | [
recent comments
] | [
all
]
Copyright 2026 Justin Frankel
.
|
RSS