win32 select all on edit ctrl (textbox)

前端 未结 7 1221
孤街浪徒
孤街浪徒 2020-12-20 23:20

I am creating my textbox with these options. I can copy/cut/paste/undo, but when i hit select A it doesnt select all. I can right click and click select all but ctrl a doesn

7条回答
  •  时光取名叫无心
    2020-12-20 23:59

    I tend to use MFC (forgive me) instead of win32 so I cannot answer this definitively, but I noticed this comment added to a page on an MS site concerning talking with an Edit control (a simple editor within the Edit control):

    The edit control uses WM_CHAR for accepting characters, not WM_KEYDOWN etc. You must Translate() your messages or you ironically won't be able to edit the text in the edit control.

    I don't know if this applies to BoltBait's response, but I suspect it does.

    (I found this at http://msdn.microsoft.com/en-us/library/bb775462(VS.85).aspx)

提交回复
热议问题