winapi - SetWindowText Slow, Win32 C++ -


i've got simple application i'm reading internal variables , posting them editcontrol's on menu.

here code snippet

case 0:         setwindowtext(getdlgitem( ghwnd, idc_packetid ),                       (lpstr)std::to_string(long long(nc->mpacketnum)).c_str());         break; 

so there's lot going on there. i'm trying convert number can shown in edit dialog. slow, can drop 50hz 30hz entering section.

any ideas speed significantly?

i have gotten around type of problem maintaining timestamp of last window update. prevent update unless amount of time had passed. 1/10th of second seemed work pretty me. performance improved noticeably , updates still looked smooth.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -