Getting window handle of radio button added to directory page
I'm trying to get the window handle from a control I've added using ResHacker on the directory page. Here is the details of the added controls...
CONTROL "", 2000, BUTTON, BS_AUTORADIOBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 0, 95, 243, 10
This part works great. I can see the radio button and interact with it. However I need to replace the text adjacent to the actual button and haven't had the best of luck doing that. Here's what I've attempted...
Function DirectoryPageShow
GetDlgItem $R0 $MUI_HWND 2000
SendMessage $R0 ${WM_SETTEXT} 0 "STR:----"
FunctionEnd
Yet there is no change on the controls text. I'm certain this is an issue with how I am retrieving the window handle. Any help is greatly appreciated.