I attached the control's source code to this message, feel free to check it out/use it :)

Posted on 2001-08-08 15:06:48 by Tola
C'mon... 58 downloads and not a single comment? You're disappointing me, guys :rolleyes:
Posted on 2001-08-11 07:47:43 by Tola
It's perfect. :alright:

I would have used my Switch/Case macro instead of all the cmp/je pairs. :) That is a nice example of a custom control in asm. It would have been nice to include an example of it's use.
Posted on 2001-08-11 09:50:04 by bitRAKE
thx, bitRAKE :)

I just wrote a very simplicistic example on how to use the control, check it out.
Posted on 2001-08-11 10:29:28 by Tola
nice somethin i was lookin for some time ago
Posted on 2001-08-11 15:16:49 by Allanon
Hey Tola, thanks for your nice custom control!
I just wrote smth. funny using it ;-)
Take a look -->>
(It'll change colors of your windows captions randomly
each time bar reaches the end;
Also it can randomize your whole Windows Colors.
But, hey, just click Cancel, it'll restore everything!

Posted on 2001-08-12 02:54:35 by Andycar
You're frightening me, Andy :grin:
Funny program..
Posted on 2001-08-12 07:06:00 by Tola
Hi Andycar :alright:

This is a very nice code, You even pack data segment
into a code segment.
Very nice little program. Full stop.

Just I have one question.
Do you have any help or reference for:

SHAutoComplete API ?
I just figure out that it is from SHLWAPI.DLL
and take 2 parameters.

The next one is CoInitialise API from OLE32.DLL

Thanks for any explanation, help or reference.
Posted on 2001-08-12 08:03:39 by forge
;-in respond to WM_INITDIALOG:
invoke CoInitialize, NULL
invoke GetDlgItem, hDlg, IDC_EDIT1mov edi, eax
invoke SHAutoComplete, edi, 0;SHACF_DEFAULT
invoke SendMessage, edi, WM_SETTEXT, 0, T(C:)

; put it into your shlwapi.inc:

SHACF_FILESYSTEM EQU 00000001h ;This includes the File System as well as the rest of the shell (Desktop\My Computer\Control Panel\)
SHACF_URLHISTORY EQU 00000002h ;URLs in the User's History
SHACF_URLMRU EQU 00000004h ;URLs in the User's Recently Used list.
SHACF_USETAB EQU 00000008h ;URLs in the User's Recently Used list.
SHACF_FILESYS_ONLY EQU 00000010h ;Don't AutoComplete non-File System items.

SHACF_AUTOSUGGEST_FORCE_ON EQU 10000000h ;Ignore the registry default and force the feature on.
SHACF_AUTOSUGGEST_FORCE_OFF EQU 20000000h ;Ignore the registry default and force the feature off.
SHACF_AUTOAPPEND_FORCE_ON EQU 40000000h ;Ignore the registry default and force the feature on. (Also know as AutoComplete)
SHACF_AUTOAPPEND_FORCE_OFF EQU 80000000h ;Ignore the registry default and force the feature off. (Also know as AutoComplete)
Posted on 2001-08-13 12:10:48 by Andycar
Tola/AmoK, I converted your control to a MASM/RadASM project - I made some changes and integrated my switch/case macro, too. :grin: All the MASM users here should be able to just plug it into their work.
Posted on 2001-08-14 23:17:28 by bitRAKE

I'm glad you did that because I guess most of the people on this board are using MASM :)
Posted on 2001-08-15 10:28:34 by Tola
Thanks Andycar,

It helps me a lot.
Posted on 2001-08-15 19:47:58 by forge
Some people might find this interesting. It's the same control, but using no FPU. :) Only three divides. It's not optimized - I left it easy to understand. :) Enjoy.

Let me know if your really interested in an optimized version?
Posted on 2001-08-15 21:48:20 by bitRAKE

could you also post an assembled/linked version? I don't even have MASM (and I'm not planning to get it :grin: )
Posted on 2001-08-16 09:10:58 by Tola
Tola, I've used most of the other assemblers, but for some reason never TASM, so I have some rather basic questions: What windows.inc do you use? Can't TASM assemble MASM sources? I haven't heard anyone mention it, but I see no reason RadASM couldn't be set-up for TASM, FASM, NASM. There just isn't much configuration documentation, yet. I'm sure KetilO is working on making the configuration easier.

It's definately not coded for size. :)
Here is the compiled executable:
Posted on 2001-08-17 10:22:04 by bitRAKE
thx bitRAKE,

just wanted to see if it's as smooth (which is why I used the fpu in the first place). But as the gradient is only calculated once, any speed gain won't be very noticeable.
I didn't try to assemble it using TASM, but my experience is that it generally doesn't work out very good.
Posted on 2001-08-18 11:51:45 by Tola
Yeah, you certainly choose an efficient method for the control. Do you think it's of a similar quality to the FPU code? I did think about that when I wrote the algorithm. The FPU is fast, too. :) Even the switch macro is overkill for so few branches, but I thought someone might want to make a super-progress-bar from the code. :grin:
Posted on 2001-08-18 12:32:41 by bitRAKE