popularlkp.blogg.se

Getwindowtext edit control
Getwindowtext edit control





getwindowtext edit control

Note that you should almost never use UpdateData in a dialog. Fortunately, there is a better, moreĮlegant, and safer way to get access to controls using MFC. My view is, if you are writing more than one GetDlgItem per year, you are

getwindowtext edit control

Use assembly code, but the reasons represent rare and very uncommon cases. The same is true of GetDlgItem.Īctually, there is slightly more reason to use a raw GetDlgItem than there is to Perhaps in the inner loop of a DSPĪlgorithm, where you might drop a few of those fancy Pentium III opcodes inline,īut the rest of the time it is insanity.

getwindowtext edit control

Know there are masochists who like to program Windows in assembly code. GetDlgItem in C++/MFC as it does to program Windows in assembly code. In C, it is the only way to get a window handle for the control. This is the way to get a handle for a control when you are working When you learned to program Windows in C, you learned about GetDlgItem.







Getwindowtext edit control