Author |
Topic |
|
XSQT2000
New Member
3 Posts |
Posted - Nov 18 2004 : 6:52:38 PM
|
I am a Chinese student. My English is very poor. Visual Assist X is very very good!!!!! I love it!!!!!
but, I give you a suggestion. e.g. I type Win32 API "ShowWindow" and "(", should auto list all system macroabout "ShowWindow", like this,
ShowWindow(hHandle, |) <------- here
---------------------
| SW_HIDE |
| SW_MAXIMIZE |
| SW_MINIMIZE |
| SW_RESTORE |
| SW_SHOW |
| SW_SHOWDEFAULT |
| SW_SHOWMAXIMIZED |
| SW_SHOWMINIMIZED |
| SW_SHOWMINNOACTIVE |
| SW_SHOWNA |
| SW_SHOWNOACTIVATE |
| SW_SHOWNORMAL |
---------------------
|
Edited by - WannabeeDeveloper on Nov 19 2004 02:08:55 AM |
|
WannabeeDeveloper
Tomato Guru
Germany
775 Posts |
Posted - Nov 19 2004 : 02:07:51 AM
|
Well, it almost does that when you type SW and press CTRL+Space... |
|
|
|
XSQT2000
New Member
3 Posts |
Posted - Nov 19 2004 : 04:36:47 AM
|
quote: Originally posted by WannabeeDeveloper
Well, it almost does that when you type SW and press CTRL+Space...
WannabeeDeveloper, thank you very much!
but, e.g. ShowWindow(..., nCmdShow); "nCmdShow" is SW_XXXXXX . MessageBox(..., uType); "uType" is MB_XXXXXX . CreateFileMapping(..., flProtect, ...); "flProtect" is PAGE_XXXXXX . CreateFont(..., fnWeight, ...); "fnWeight" is FW_XXXXXX . ......
SW_XXXXXX, MB_XXXXXX, PAGE_XXXXXX, FW_XXXXXX ...... too many! we can't remember all! so, my suggestion is good. otherwise, we must refer to MSDN.
|
|
|
daienming
Starting Member
1 Posts |
Posted - Nov 21 2004 : 9:55:01 PM
|
I need this too! |
|
|
leaveye
Starting Member
1 Posts |
Posted - Nov 21 2004 : 10:08:37 PM
|
This is very nice.
If add this function, programmers like me would work much more efficiently.
I vote for it. |
|
|
Ruskialt
Junior Member
Denmark
22 Posts |
Posted - Nov 22 2004 : 02:26:34 AM
|
Probably very difficult to implement, how would VAX be able build the list? There's no way to know, except for reading documentation for each function call. VAX can't hold a database for all possible functions holding all possible flags. The flags are usually declared in #define statements, it would have been easier had it been enum declarations, but there's probably a reason for it's not... |
|
|
Cezariusz
Tomato Guru
Poland
244 Posts |
Posted - Nov 22 2004 : 05:54:14 AM
|
Don't you have a feeling, that XSQT2000, daienming and leaveye are from the same team (if not the same person)?
|
Cezariusz Marek https://midicat.net/ |
|
|
WannabeeDeveloper
Tomato Guru
Germany
775 Posts |
Posted - Nov 22 2004 : 06:46:51 AM
|
Well, what comes next?
"I have a question in my MessageBox-Text, so I want VAX to automagically add a MB_ICONQUESTION..." "Since the Z-Order-Parameter for my SetWindowPos-Call is NULL, I want VAX to automagically add SWP_NOZORDER..."
Anyway, VAX may help you become more efficient, it will not generate code for you! And yes, I'd say "looking at the function and then offering constants only valid in the current scope" is generating code!
Not to mention the CPU-Load overhead this would generate...
|
|
Edited by - WannabeeDeveloper on Nov 22 2004 06:54:20 AM |
|
|
WannabeeDeveloper
Tomato Guru
Germany
775 Posts |
Posted - Nov 22 2004 : 06:53:08 AM
|
quote: Originally posted by XSQT2000
SW_XXXXXX, MB_XXXXXX, PAGE_XXXXXX, FW_XXXXXX ...... too many! we can't remember all! so, my suggestion is good. otherwise, we must refer to MSDN.
While this answer may sound harsh to you, I'd say: Then learn to remember them!
All you need to remember is MB_ (for MessageBox) or SWP_ (for SetWindowPos) or SW_ (for ShowWindow) or... do you notice something? |
|
|
|
XSQT2000
New Member
3 Posts |
Posted - Nov 22 2004 : 08:37:58 AM
|
quote:
While this answer may sound harsh to you, I'd say: Then learn to remember them!
thank you! I take your advice.
quote:
All you need to remember is MB_ (for MessageBox) or SWP_ (for SetWindowPos) or SW_ (for ShowWindow) or... do you notice something?
ha ha ha Suddenly I tumbled to it. you are an expert, an adept. thank you! thank you!
|
|
|
|
Topic |
|