Menu

#392 GetDlgItemText fails with no contents

closed-fixed
nobody
win32 (141)
5
2009-01-30
2008-11-18
Tim Golden
No

win32gui.GetDlgItemText returns an error if there is nothing in the control in question. I'm not sure if this is "correct" (since the docs say that zero is returned on failure) but I can't see how else to determine that the control has no contents.

I can work around the issue by catching the exception and assuming that there are no contents.

Discussion

  • Mark Hammond

    Mark Hammond - 2009-01-30

    Checking in win32/src/win32gui.i;
    new revision: 1.124; previous revision: 1.123

     
  • Mark Hammond

    Mark Hammond - 2009-01-30
    • status: open --> closed-fixed
     
  • Tim Golden

    Tim Golden - 2009-01-31

    Thanks very much