本文整理汇总了C++中IParamMap::GetUserDlgProc方法的典型用法代码示例。如果您正苦于以下问题:C++ IParamMap::GetUserDlgProc方法的具体用法?C++ IParamMap::GetUserDlgProc怎么用?C++ IParamMap::GetUserDlgProc使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IParamMap
的用法示例。
在下文中一共展示了IParamMap::GetUserDlgProc方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: UpdateUI
void ChBoxObject::UpdateUI()
{
if (ip == NULL)
return;
ChBoxParamDlgProc* dlg = static_cast<ChBoxParamDlgProc*>(pmapParam->GetUserDlgProc());
dlg->Update();
}
示例2: UpdateUI
void TorusObject::UpdateUI()
{
if (ip == NULL)
return;
TorusParamDlgProc* dlg = static_cast<TorusParamDlgProc*>(pmapParam->GetUserDlgProc());
dlg->Update(ip->GetTime());
}
示例3: UpdateUI
void CExtObject::UpdateUI()
{
if (ip == NULL)
return;
CExtWidthDlgProc* dlg = static_cast<CExtWidthDlgProc*>(pmapParam->GetUserDlgProc());
dlg->Update();
}
示例4: UpdateUI
void ExtrudeMod::UpdateUI()
{
if (ip == NULL)
return;
ExtrudeDlgProc* dlg = static_cast<ExtrudeDlgProc*>(pmapParam->GetUserDlgProc());
dlg->UpdateRWS();
}
示例5: UpdateUI
void ScubaObject::UpdateUI()
{
if (ip == NULL)
return;
ScubaHeightDlgProc* dlg = static_cast<ScubaHeightDlgProc*>(pmapParam->GetUserDlgProc());
dlg->Update();
}
示例6: UpdateUI
void PyramidObject::UpdateUI()
{
if (ip == NULL)
return;
PyramidParamDlgProc* dlg = static_cast<PyramidParamDlgProc*>(pmapParam->GetUserDlgProc());
dlg->Update();
}
示例7: BeginEditParams
void CExtObject::BeginEditParams(IObjParam *ip,ULONG flags,Animatable *prev)
{
SimpleObject::BeginEditParams(ip,flags,prev);
if (pmapCreate && pmapParam) {
// Left over from last CExt ceated
pmapCreate->SetParamBlock(this);
pmapTypeIn->SetParamBlock(this);
pmapParam->SetParamBlock(pblock);
CExtWidthDlgProc* dlg = static_cast<CExtWidthDlgProc*>(pmapParam->GetUserDlgProc());
if (dlg != NULL) {
BOOL rws = dlg->GetRWSState();
SetUsePhysicalScaleUVs(rws);
}
} else {
// Gotta make a new one.
if (flags&BEGIN_EDIT_CREATE) {
pmapCreate = CreateCPParamMap(
descCreate,CREATEDESC_LENGTH,
this,
ip,
hInstance,
MAKEINTRESOURCE(IDD_UEXTRUSIONS1),
GetString(IDS_RB_CREATE_DIALOG),
0);
pmapTypeIn = CreateCPParamMap(
descTypeIn,TYPEINDESC_LENGTH,
this,
ip,
hInstance,
MAKEINTRESOURCE(IDD_C_EXTRUSION2),
GetString(IDS_RB_KEYBOARDENTRY),
APPENDROLL_CLOSED);
}
pmapParam = CreateCPParamMap(
descParam,PARAMDESC_LENGTH,
pblock,
ip,
hInstance,
MAKEINTRESOURCE(IDD_C_EXTRUSION3),
GetString(IDS_AP_PARAMETERS),
0);
}
this->ip = ip;
if(pmapTypeIn) {
// A callback for the type in.
pmapTypeIn->SetUserDlgProc(new CExtTypeInDlgProc(this));
}
if(pmapParam) {
// A callback for the type in.
pmapParam->SetUserDlgProc(new CExtWidthDlgProc(this));
}
}
示例8: BeginEditParams
void ScubaObject::BeginEditParams(IObjParam *ip,ULONG flags,Animatable *prev)
{
SimpleObject::BeginEditParams(ip,flags,prev);
if (pmapCreate && pmapParam) {
// Left over from last Scuba ceated
pmapCreate->SetParamBlock(this);
pmapTypeIn->SetParamBlock(this);
pmapParam->SetParamBlock(pblock);
ScubaHeightDlgProc* dlg = static_cast<ScubaHeightDlgProc*>(pmapParam->GetUserDlgProc());
if (dlg != NULL) {
BOOL rws = dlg->GetRWSState();
SetUsePhysicalScaleUVs(rws);
}
} else {
if (flags&BEGIN_EDIT_CREATE) {
pmapCreate = CreateCPParamMap(
descCreate,CREATEDESC_LENGTH,
this,
ip,
hInstance,
MAKEINTRESOURCE(IDD_UREVS1),
GetString(IDS_RB_CREATE_DIALOG),
0);
pmapTypeIn = CreateCPParamMap(
descTypeIn,TYPEINDESC_LENGTH,
this,
ip,
hInstance,
MAKEINTRESOURCE(IDD_SCUBA2),
GetString(IDS_RB_KEYBOARDENTRY),
APPENDROLL_CLOSED);
}
pmapParam = CreateCPParamMap(
descParam,PARAMDESC_LENGTH,
pblock,
ip,
hInstance,
MAKEINTRESOURCE(IDD_SCUBA3),
GetString(IDS_AP_PARAMETERS),
0);
}
this->ip = ip;
if(pmapTypeIn) {
pmapTypeIn->SetUserDlgProc(new ScubaTypeInDlgProc(this));
}
if(pmapParam) {
pmapParam->SetUserDlgProc(new ScubaHeightDlgProc(this));
}
}
示例9: BeginEditParams
// This method is called by the system when the user needs
// to edit the objects parameters in the command panel.
void ChBoxObject::BeginEditParams(IObjParam *ip,ULONG flags,Animatable *prev)
{
// We subclass off SimpleObject so we must call its
// BeginEditParams() method first.
SimpleObject::BeginEditParams(ip,flags,prev);
// Save the interface pointer.
if (pmapCreate && pmapParam) {
// Left over from last box ceated
pmapCreate->SetParamBlock(this);
pmapTypeIn->SetParamBlock(this);
pmapParam->SetParamBlock(pblock);
ChBoxParamDlgProc* dlg = static_cast<ChBoxParamDlgProc*>(pmapParam->GetUserDlgProc());
if (dlg != NULL) {
BOOL rws = dlg->GetRWSState();
SetUsePhysicalScaleUVs(rws);
}
} else {
// Gotta make a new one.
if (flags&BEGIN_EDIT_CREATE) {
// Here we create each new rollup page in the command panel
// using our descriptors.
pmapCreate = CreateCPParamMap(
descCreate,CREATEDESC_LENGTH,
this,
ip,
hInstance,
MAKEINTRESOURCE(IDD_CHAMFERCUBE1),
GetString(IDS_RB_CREATE_DIALOG),
0);
pmapTypeIn = CreateCPParamMap(
descTypeIn,TYPEINDESC_LENGTH,
this,
ip,
hInstance,
MAKEINTRESOURCE(IDD_CHAMFERCUBE2),
GetString(IDS_RB_KEYBOARDENTRY),
APPENDROLL_CLOSED);
}
pmapParam = CreateCPParamMap(
descParam,PARAMDESC_LENGTH,
pblock,
ip,
hInstance,
MAKEINTRESOURCE(IDD_CHAMFERCUBE3),
GetString(IDS_AP_PARAMETERS),
0);
}
this->ip = ip;
if(pmapTypeIn) {
// A callback for the type in.
// This handles processing the Create button in the
// Keyboard Entry rollup page.
pmapTypeIn->SetUserDlgProc(new ChBoxTypeInDlgProc(this));
}
if (pmapParam != NULL) {
pmapParam->SetUserDlgProc(new ChBoxParamDlgProc(this));
}
}