Skip to content

Latest commit

 

History

History
159 lines (123 loc) · 5.92 KB

nf-peninputpanel-itextinputpanel-get_popdowncorrectionheight.md

File metadata and controls

159 lines (123 loc) · 5.92 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:peninputpanel.ITextInputPanel.get_PopDownCorrectionHeight
ITextInputPanel::get_PopDownCorrectionHeight (peninputpanel.h)
Gets the height of the Post-Insertion correction comb when it is positioned below Input Panel.
525e5406-75ff-4f3c-a3f2-a542e04ca203
ITextInputPanel interface [Tablet PC]
PopDownCorrectionHeight property
ITextInputPanel.PopDownCorrectionHeight
ITextInputPanel.get_PopDownCorrectionHeight
ITextInputPanel::PopDownCorrectionHeight
ITextInputPanel::get_PopDownCorrectionHeight
PopDownCorrectionHeight property [Tablet PC]
PopDownCorrectionHeight property [Tablet PC]
ITextInputPanel interface
get_PopDownCorrectionHeight
peninputpanel/ITextInputPanel::PopDownCorrectionHeight
peninputpanel/ITextInputPanel::get_PopDownCorrectionHeight
tablet.itextinputpanel_popdowncorrectionheight
tablet\itextinputpanel_popdowncorrectionheight.htm
tablet
525e5406-75ff-4f3c-a3f2-a542e04ca203
12/05/2018
525e5406-75ff-4f3c-a3f2-a542e04ca203, ITextInputPanel interface [Tablet PC],PopDownCorrectionHeight property, ITextInputPanel.PopDownCorrectionHeight, ITextInputPanel.get_PopDownCorrectionHeight, ITextInputPanel::PopDownCorrectionHeight, ITextInputPanel::get_PopDownCorrectionHeight, PopDownCorrectionHeight property [Tablet PC], PopDownCorrectionHeight property [Tablet PC],ITextInputPanel interface, get_PopDownCorrectionHeight, peninputpanel/ITextInputPanel::PopDownCorrectionHeight, peninputpanel/ITextInputPanel::get_PopDownCorrectionHeight, tablet.itextinputpanel_popdowncorrectionheight
peninputpanel.h
Windows
Windows XP Tablet PC Edition [desktop apps only]
None supported
Tiptsf.dll
Windows
19H1
ITextInputPanel::get_PopDownCorrectionHeight
peninputpanel/ITextInputPanel::get_PopDownCorrectionHeight
c++
APIRef
kbSyntax
COM
tiptsf.dll
ITextInputPanel.PopDownCorrectionHeight
ITextInputPanel.get_PopDownCorrectionHeight
ITextInputPanel.get_PopDownCorrectionHeight

ITextInputPanel::get_PopDownCorrectionHeight

-description

[ITextInputPanel is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. Instead, use IInputPanelConfiguration.

]

Gets the height of the Post-Insertion correction comb when it is positioned below Input Panel.

This property is read-only.

-parameters

-remarks

Note  In Windows 7, this function will always return the height as 0.
 
To get the full height of the in-place Input Panel with the Post-Insertion correction comb popped-down, add the height of the ITextInputPanel::InPlaceBoundingRectangle Property to the ITextInputPanel::PopDownCorrectionHeight Property.
Note  The ITextInputPanel::PopUpCorrectionHeight Property is greater than or equal to the ITextInputPanel::PopDownCorrectionHeight Property.
 

Examples

This C++ example implements an EN_SETFOCUS event handler for an Edit control, IDC_EDIT3. It first checks if an ITextInputPanel object, g_pTip, has been created. If it exists, it reports the values of several ITextInputPanel Interface properties to debug output using the TRACE macro.

void CCOMTIPDlg::OnEnSetFocusEdit3()
{
    if (NULL != g_pTip)
    {
		CorrectionMode mode;

		if (SUCCEEDED(g_pTip->get_CurrentCorrectionMode(&mode)))
        {
			TRACE("CurrentCorrectionMode: %d\n", mode);
		}

		InPlaceState state;

		if (SUCCEEDED(g_pTip->get_CurrentInPlaceState(&state)))
        {
			TRACE("CurrentInPlaceState: %d\n", state);
		}

		PanelInputArea area;

		if (SUCCEEDED(g_pTip->get_CurrentInputArea(&area)))
        {
			TRACE("CurrentInputArea: %d\n", area);
		}

		InteractionMode iMode;

		if (SUCCEEDED(g_pTip->get_CurrentInteractionMode(&iMode)))
        {
			TRACE("CurrentInteractionMode: %d\n", iMode);
		}

        RECT rect;

		if (SUCCEEDED(g_pTip->get_InPlaceBoundingRectangle(&rect)))
        {
	        TRACE("InPlaceBoundingRectangle.top: %d\n", rect.top);
	        TRACE("InPlaceBoundingRectangle.left: %d\n", rect.left);
	        TRACE("InPlaceBoundingRectangle.bottom: %d\n", rect.bottom);
	        TRACE("InPlaceBoundingRectangle.right: %d\n", rect.right);
        }

	    int nHeight;

		if (SUCCEEDED(g_pTip->get_PopDownCorrectionHeight(&nHeight)))
        {
	        TRACE("PopDownCorrectionHeight: %d\n", nHeight);
        }

	    if (SUCCEEDED(g_pTip->get_PopUpCorrectionHeight(&nHeight)))
        {
	        TRACE("PopUpCorrectionHeight: %d\n", nHeight);
        }

		if (SUCCEEDED(g_pTip->SetInPlacePosition(300, 300, CorrectionPosition_Bottom)))
		{
			TRACE("Call to SetInPlacePosition() succeeded.\n");
		}
		else
		{
			TRACE("Call to SetInPlacePosition() failed.\n");
		}
    }
    else
    {
        TRACE("ITextInputPanel object is NULL.\n");
    }
}

-see-also

ITextInputPanel Interface