windows编程之#pragma region和#pragma endregion

来源:互联网 发布:淘宝自动收货时间最长 编辑:程序博客网 时间:2024/05/24 01:49

今天第一次看到别人这样写,孤陋寡闻了。

这个用法挺常见的。

MSDN中对这个组合有详细的解释:

#pragma region lets you specify a block of code that you can expand or collapse when using the outlining feature of the Visual Studio Code Editor.


简单的说就是可以使得代码块能够在vs代码编辑器里面收缩和展开。


更多详细信息:

https://msdn.microsoft.com/en-us/library/b6xkz944(VS.80).aspx


0 0
原创粉丝点击