I am using C++ MFC, and have created a simple dialog with CButtons, each of them mapped with its .bitmap files and resource ids (ID_BUTTON*) in a .rc script file.
Similar lines are present in my .rc file, in DIALOG
description:
CONTROL "TEST|Button7",ID_BUTTON2,"Button",BS_OWNERDRAW | WS_TABSTOP,234,29,30,71
In my project I am trying to get the resource id of each CButton
object. I did it with this:
int getID = this->GetDlgCtrlID();
But how can I use my resource ID further to get the CButton
control text value? Meaning this:
"TEST|Button7"
If not, is there a specific way to get it?