Enable 'ReaderMode' in .Net control, PInvoke DoReaderMode API

走远了吗. 提交于 2019-12-13 17:47:42

问题


I want to enable the 'ReaderMode' for paning/scrolling my control in .Net. Closest thing I found was this Win API function http://msdn.microsoft.com/en-us/library/bb775599(VS.85).aspx. However, I'm not sure how to call this one, in the documentation it says,

Note This function is not declared in any public header. To use it, you must access it as ordinal 383 from Comctl32.dll.

I've never called a function that didn't have a name before, can anyone describe how to do this in VB.Net?


回答1:


Well you should try:

<DllImport("Comctl32.dll", EntryPoint:="#383", _
     CallingConvention:=CallingConvention.StdCall)> _

to specify a function by its ordinal. You should also pass the structure, but I suppose you know how to proceed.



来源:https://stackoverflow.com/questions/6267380/enable-readermode-in-net-control-pinvoke-doreadermode-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!