Home > Back-end >  About in CMFCPropertyGridProperty ComboBox dropdown box
About in CMFCPropertyGridProperty ComboBox dropdown box

Time:09-24

CMFCPropertyGridProperty selected item properties for the ComboBox, wants to control property entry via keyboard Alt + left ComboBox dropdown box, according to
Going to code between the===to join, but checked some data, from the prop to ShowDropDown (BL_TRUE) transition,
Hope friends to help, thank you for your guidance,
The switch (MSG - & gt; Message)
{
Case WM_SYSKEYDOWN:
If (: : GetKeyState (VK_MENU) & lt; 0)
{
Char key=static_cast & lt; Char> (MSG - & gt; WParam);
The switch (key)
{
Case VK_DOWN:
CMFCPropertyGridProperty * prop=CMFCPropertyGridCtrl: : GetCurSel ();
If (prop==nullptr) break;
if(! Prop - & gt; IsAllowEdit ())
{
======================================================

======================================================
}
}
}
break;

Case WM_KEYDOWN:
The switch (MSG - & gt; WParam)
{
Case VK_TAB:
CMFCPropertyGridCtrl: : SendMessageW (WM_KEYDOWN, VK_DOWN);
Return BL_TRUE;
Default:
Return CMFCPropertyGridCtrl: : PreTranslateMessage (MSG);
}
break;
}

Return CMFCPropertyGridCtrl: : PreTranslateMessage (MSG);
  • Related