Working of OnInquire, CPL_DYNAMIC_RES and OnNewInquire

  • Thread starter Thread starter KaiNeugebauer
  • Start date Start date
K

KaiNeugebauer

Guest
The documentation says, that I must use CPL_DYNAMIC_RES for idName, idInfo or idIcon in OnInquire. Than OnNewInquire will be called, if I need it. Sonds nice, but it's only called once a time.

My problem is, that we have a tool, which is able to change its language, not the language of the OS. Therefore, the displaying text of the CPL must be changed too.

Has anybody an idea, what I've to do in my CPL, that OnNewInquire is called again?


LONG CToolPanel::OnInquire( UINT uAppNum, CPLINFO* pInfo )
{
pInfo->lData = 0;
pInfo->idName = CPL_DYNAMIC_RES;
pInfo->idInfo = CPL_DYNAMIC_RES;
pInfo->idIcon = CPL_DYNAMIC_RES;

return 0;
}

Continue reading...
 
Back
Top