MCPcopy Create free account
hub / github.com/acl-dev/acl / OnSize

Method OnSize

lib_acl_cpp/samples/gui_rpc/gui_rpcDlg.cpp:279–298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277}
278
279void Cgui_rpcDlg::OnSize(UINT nType, int cx, int cy)
280{
281 CDialog::OnSize(nType, cx, cy);
282
283 //�����Ի���ʱ���ؼ���û�д�������˲��ܸı����С(������������д���)
284 if(!IsWindowVisible())
285 return;
286
287 // TODO: �ڴ˴�������Ϣ�����������
288 if (m_wndMeterBar.GetSafeHwnd())
289 {
290 int aWidths[3] = {cx / 3, cx / 3, -1};
291 m_wndMeterBar.SetParts(3, aWidths);
292 m_wndMeterBar.SetText("����", 0, 0);
293 m_wndMeterBar.SetText("����2", 1, 0); //SBT_NOBORDERS);
294 m_wndMeterBar.SetText("", 2, SBT_NOBORDERS);
295
296 m_wndMeterBar.SendMessage(WM_SIZE, nType, MAKELONG(cy, cx));
297 }
298}
299
300void Cgui_rpcDlg::OnEnChangeUrl()
301{

Callers

nothing calls this directly

Calls 2

SetPartsMethod · 0.45
SetTextMethod · 0.45

Tested by

no test coverage detected