Home > Software engineering >  [for] CallWindowProc successful call class module functions, but function collapse at the end of the
[for] CallWindowProc successful call class module functions, but function collapse at the end of the

Time:10-02

Such as topic, from the Internet to gain a subclass class module (the original author: PctGL),
To dig yourself from the inside in call class module function function,
But by the time the test, the question becomes,

As I use the right way???????

CodePudding user response:

Download: http://pan.baidu.com/s/1mgqTnpI

CodePudding user response:

Sub Main ()
ReDim LinkProc (0 To 10)
LinkProc (0)=& amp; H83EC8B55
LinkProc (1)=& amp; H75FFFCC4
LinkProc (2)=& amp; H1075FF14
LinkProc (3)=& amp; HFF0C75FF
LinkProc (4)=& amp; H458D0875
LinkProc (5)=& amp; H6850FC
LinkProc (6)=& amp; HB8000010
LinkProc (7)=& amp; H2000
LinkProc (8)=& amp; H458BD0FF
LinkProc (9)=& amp; H10C2C9FC
LinkProc (10)=0 "' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' 'add
The Load Form1
Form1. Show
End Sub

CodePudding user response:

To send those linkproc online code, it is a custom, is only applicable to sub types and function with five parameters...
Every time for efficiency are made with specially developed way custom linkproc
Wait me free, can get a mixture of different types of linkproc... Or go to see Mr. Jiang, I remember him as if he had been doing a can adapt to different function of

Another is that sincecount parameter, this parameter if the wrong, is the inevitable collapse
According to what you want to the called function, private/public type, different methods to calculate
Count of all types of public function, if your function is public type, that is number is which one, directly from the class is the first line of code, the called function is a type of public function N

If it is private, is starting the first function, count out how many all types of public function, and then start again from scratch, look at your private rank
Should eventually, public type function total + N a private function

According to the use of the different sincecount the above two different types of values
  •  Tags:  
  • API
  • Related