-Karamja-
asked on
Set EXE Data...
Hello,
I need 2 apps here, One with a label, other to set the label caption to the exe of first app
Hope you know what im talking about =)
I need 2 apps here, One with a label, other to set the label caption to the exe of first app
Hope you know what im talking about =)
ASKER
What?
I think you mean you want to be able to alter a label caption of a delphi exe
without re-compiling it....and without using the registry or ini files... but by actually
altering the exe itself.
If that is what you want I have demos that show how to do this... just ask and
I will send the demos.
A delphi exe can change the caption itself or you can use a 2nd app to do it...
it's easy eaither way.
without re-compiling it....and without using the registry or ini files... but by actually
altering the exe itself.
If that is what you want I have demos that show how to do this... just ask and
I will send the demos.
A delphi exe can change the caption itself or you can use a 2nd app to do it...
it's easy eaither way.
ASKER
Yea,
If you could upload them or somethink if they work you got the points
If you could upload them or somethink if they work you got the points
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks, works fine! =)
An application sends a WM_SETTEXT message to set the text of a window.
To send this message, call the SendMessage function with the following parameters.
SendMessage(
(HWND) hWnd, // handle to destination window
WM_SETTEXT, // message to send
(WPARAM) wParam, // not used; must be zero
(LPARAM) lParam // window-text string (LPCTSTR)
);
Parameters
wParam
This parameter is not used.
lParam
Pointer to a null-terminated string that is the window text.
Return Values
The return value is TRUE if the text is set. It is FALSE (for an edit control), LB_ERRSPACE (for a list box), or CB_ERRSPACE (for a combo box) if insufficient space is available to set the text in the edit control. It is CB_ERR if this message is sent to a combo box without an edit control.
Remarks
The DefWindowProc function sets and displays the window text. For an edit control, the text is the contents of the edit control. For a combo box, the text is the contents of the edit-control portion of the combo box. For a button, the text is the button name. For other windows, the text is the window title.
This message does not change the current selection in the list box of a combo box. An application should use the CB_SELECTSTRING message to select the item in a list box that matches the text in the edit control.