Opening a file. I want to open a file, whit out using the open file dialog (comdlg32.inc/.lib), and after opening it I want to draw the text in a Window (using the Edit class). how do I do? Can I use the
to "draw" the text? //_________________________ Hans ollonen "d00zer" neux _________________________ \\
The open file dialog doesn't open the file for you. (As a side note, the dialog is created with GetOpenFileName. The name itself tells you that it won't open the file for you.) Whether or not you use the dialog, you still need to invoke CreateFile. Check the docs if you have any, there are quite a few parameters to describe. You can ignore security stuff by setting the security paramter to NULL. To draw text in an edit control, use
This will replace the entire contents of the edit control with the new string.
invoke SetWindowText,hwndEditControl,addr TextString