get idd of object [modifed]
-
HI all :) I have
CDerivedStatic
class and method :void CDerivedStatic::foo()
{
...
SetDlgItemText( /*How to get ID of current object*/,
"Some text" );
...
}I know I can call the SetWindowText API, but I need this variant :) thank you. -- modified at 13:26 Friday 19th May, 2006
-
HI all :) I have
CDerivedStatic
class and method :void CDerivedStatic::foo()
{
...
SetDlgItemText( /*How to get ID of current object*/,
"Some text" );
...
}I know I can call the SetWindowText API, but I need this variant :) thank you. -- modified at 13:26 Friday 19th May, 2006
It's the ID of the objects that you defined in the resource editor.
Cédric Moonen Software developer
Charting control -
HI all :) I have
CDerivedStatic
class and method :void CDerivedStatic::foo()
{
...
SetDlgItemText( /*How to get ID of current object*/,
"Some text" );
...
}I know I can call the SetWindowText API, but I need this variant :) thank you. -- modified at 13:26 Friday 19th May, 2006
This will work fine:
void CDerivedStatic::foo()
{
SetWindowText("Some text");
}
"The largest fire starts but with the smallest spark." - David Crow
-
HI all :) I have
CDerivedStatic
class and method :void CDerivedStatic::foo()
{
...
SetDlgItemText( /*How to get ID of current object*/,
"Some text" );
...
}I know I can call the SetWindowText API, but I need this variant :) thank you. -- modified at 13:26 Friday 19th May, 2006
If that class is derived from
CStatic
, just callSetWindowText()
--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
-
If that class is derived from
CStatic
, just callSetWindowText()
--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
I know Ican call SetWindowText API, but I need to get ID of current instance ? thank you.
-
I know Ican call SetWindowText API, but I need to get ID of current instance ? thank you.
GetDlgCtrlID()
--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
-
GetDlgCtrlID()
--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
thanks