giuseppe500

Hello , how set the properties of a control from the .rc file
I see that with the common use controls that button or static ,can be set the caption.
And the other properties
and with a custom control how set caption
thanks


Re: Visual C++ General set properties from .rc resource file

giuseppe500

i see also whith spy that the message settext from a property modify in .rc file start sometime and not always.
maybe that the property or the type of the dialog change the fire of this messages
thanks in advance




Re: Visual C++ General set properties from .rc resource file

giuseppe500

pardon.
a message that fire in spy when set a property from the .rc is WM_SETMESSAGESTRING but i cant use it because is reserved in c++ mfc 6.0.
I use an activex
What message I can use at his place
there is also the gettext , but dont work!
ON_MESSAGE(WM_GETTEXT ,GetTextaaa)
what kind of method i must implement
i use this:
LRESULT CDefBtnCtrl::GetTextaaa(WPARAM wParam, LPARAM lParam)
{
AfxMessageBox("get");
// TODO: Switch on wNotifyCode here.

return 1;
}
this return alwais 1!and in testi if i invoke the property return "" and dont show the messagebox
thanks in advance.




Re: Visual C++ General set properties from .rc resource file

kirants

Is it an activex control If yes, after inserting the activex control in resource editor, did you try clicking on the control -> then right click to show properties Do you not see the propeties there



Re: Visual C++ General set properties from .rc resource file

giuseppe500

thank's , but i must work with .rc file for set custom properties.
write in .rc
save
compile and retrieve custom properties on .rc