I have been looking at it, wondering why overcomplicate it if what you want to do can be done easier?
From the link you posted jj:
> P.S.: If I add a BS_COMMANDLINK style to the pXpButton3 button in Josep Roca's example, it doesn't change at all.
and in the code you attached:
invoke CreateWindowExW, 0, uc$("button"), uc$("Button"),
WS_CHILD or WS_VISIBLE or WS_BORDER or BS_COMMANDLINK or BS_TEXT or BS_MULTILINE,
9, 9, 96, 32, hWnd, 110, wcx.hInstance, NULL ; we have added an edit control
so, have you tried removing 'BS_COMMANDLINK' ? (not sure what does or is for, btw)