带动态字幕的按钮 [英] Button With Dynamic Caption
本文介绍了带动态字幕的按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道带有动态字幕的make按钮吗?
例如,我有一个标题为"Ok"的按钮,并希望此标题进行更新和更改.
有可能吗?
有任何文章或参考吗?
问候,
Hi,
I want know possible make button with dynamic caption?
For example I have button with caption "Ok" and want this caption update and change.
Is it possible?
Any article or reference for that?
Regards,
推荐答案
尝试调用:):
Try a call of :) :
BOOL WINAPI SetWindowText(
_In_ HWND hButton,
_In_opt_ LPCTSTR lpString
);
如果您在Win32中工作,则可以使用
If you are working in Win32, you can use
// IDC_BUTTON1 is the ID of Button
// m_hWnd is the window( handle to the dialog) which holds the button.
::SetDlgItemText( m_hWnd, IDC_BUTTON1, "NewText" );
这篇关于带动态字幕的按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文