flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
frech 24 Apr 2009, 10:04
Hi. Another problem in my simple editor, this time regarding the way to add a find dialog box.
I tried with the WinAPI FindText function and the common dialog box, without success, then I decided to create a stripped down version of that dialog box (just to try, then I'll add something) and call it following the examples in Iczelion tutorial, in MDIRichEditFasm and in AsmWork. No way. Any tip? Thank you in advance.
Last edited by frech on 24 Apr 2009, 15:55; edited 3 times in total |
|||||||||||
![]() |
|
pete 24 Apr 2009, 10:38
What exactly does not work? To search for the entered text in the RichEditControl? What was the problem with the FindText function?
|
|||
![]() |
|
pete 24 Apr 2009, 13:02
When you read the docu at http://msdn.microsoft.com/en-us/library/bb788011(VS.85,loband).aspx, you will discover that wparam should be one of the flags listed there. I did a research and discovered, that no flag has the value 0, so this is an invalid parameter you use with EM_FINDTEXTEX.
|
|||
![]() |
|
frech 24 Apr 2009, 13:17
Uhm... Here's what I found in WIN32Help fo EM_FINDTEXTEX:
Quote: Finds text within a rich edit control. It says that even 0 is allowed... Anyway, I tried with FR_DOWN: now it finds the text but does not select it. In the mean while, I'll try and implement "find next"... ![]() |
|||
![]() |
|
pete 24 Apr 2009, 13:23
Well WIN32HLP is out of date. If you are having trouble with something documented in WIN32HLP, check out the online MSDN docs!
There is no up-to-date WIN32HLP as far as i know… |
|||
![]() |
|
frech 24 Apr 2009, 13:30
Yeah, that's true... I will, thanks. Is there a downloadable version, anyway? And what about the selection of the text?
|
|||
![]() |
|
frech 24 Apr 2009, 14:54
Ok, I solved the text selection "bug" invoking SetFocus on the rich edit control and now it works ok.
Thank you again, pete! |
|||
![]() |
|
pete 27 Apr 2009, 11:25
Yes, there's a downloadable version of the MSDN, but it's several GIGABYTES in size…
Check the last post of the Windows FAQ thread! |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.