|
Posted by dbgrick on November 27, 2007, 10:08 am
Please log in for more thread options
I use an owner drawn button. You intercept the WM_DRAWITEM message and then
cast the lparam to a LPDRAWITEMSTRUCT pOwnerDraw. You use the hDC for the
cast param to draw your owner draw item. You use (pOwnerDraw->itemAction &
ODA_FOCUS) to determine if the item has focus and adjust your draw
appropriately. Then, you just use the button as a normal button in the
Dialog Proc to determine if the user selected the item. For smartphone you
might want to intercept the IDOK message and determine if the selected
control is your owner draw control, and process appropriately. I hope this
helps.
Regards,
Rick D.
Contractor
"Freeman Ng" wrote:
> Just like the Tasks app, for example, where phone numbers and URLs and email
> addresses become links that can be scrolled through and selected.
>
> Is there a built in control or component for doing this?
>
> Thanks.
>
|