Home > Software engineering >  Vc plug-in how to make input function name () more than two Spaces
Vc plug-in how to make input function name () more than two Spaces

Time:10-04

Vc f123 plug-ins such as defined function and then call in f1 and plug-in will pop up a list box to select list of f123 press enter code automatically fill after JiCheng
F123 (| |) I used to represent the cursor location here
Actually my own coding habits like inside the parentheses to add two Spaces from among two Spaces after input code looks nice
Want to ask next how to set up the plugin let I selected f123 code auto-complete for
F123 (|) this..


With VC plug-in (will give you fill your default input JiCheng (|) here and how change can let he is lacking for the (|)

CodePudding user response:

"The inside of the selected list f123 press enter after"

LRESULT CxxxDlg: : OnKey (UINT uMsg *//* and WPARAM WPARAM, LPARAM LPARAM *//* and BOOL& BHandled)
{
If (VK_RETURN==wParam)
{
//get a list of the current item Text (f123)
//f123 + "()";
}
}

CodePudding user response:

It seems I haven't read it completely

CodePudding user response:

Eldest brother you where this code to add the VC that plug-in didn't add the function of the c + + code

CodePudding user response:

The list control's parent window

CodePudding user response:

You are the more troublesome, above mentioned method is to hope you hook tip list window procedure, and handle VK_RETURN message
But sometimes waiting is not a function of all like VK_SPACE such completion, he would you when you press enter into VK_SPACE |
And you have to hook the completion list window also trouble, it seems to be constantly destroyed and create (window handle changing)

Can consider to use autohotkey to automation, it is very easy,
Script
^ R: : send, {Space} {Space} {Left}

Implementation can simulate two Spaces + CTRL + r a left key, you can also custom shortcuts,

Autohotkey is a very good software, highly recommended,
Liverpoolfc.tv:
https://ahkcn.github.io/docs/Scripts.htm

CodePudding user response:

Autohotkey I have recommended for several years,
  • Related