Skip to main content

Featured

Build docker image from multiple build contexts

Build docker image from multiple build contexts Building a docker image requires specifying a source of truth to include in the image from a local directory or a remote git repository. In the previous version, the docker BuildKit allows users to specify the build context from a single source of truth only. However, the engineers may need to have the context from different locations based on the type of files. For instance, icons, images or other resources that are not included in the same package, including the resource from other docker images. Fortunately, the Docker Buildx toolkit supports multiple build context flag for Docker 1.4. Let's learn how to use this new feature. The following list is a shortcut for jumping into a specific topic handy. What version of Docker is this tutorial targeting? How to specify the version of Dockerfile frontend? Ho

[CTreeCtrl]取得Item的Handle

1.GetRootItem():取得目前TreeCtrl上的根項目。

使用此函式,第一個會取得的為Mountain。












2.GetNextSiblingItem():取得下一個同階層的項目。
  在此函式前呼叫GetRootItem()的話,則在呼叫此函式時會得到River、Houses、Road、Plant。

3.把GetRootItem()取得到的HTREEITEM丟給GetChildItem(),則會得到Fold。之後再使用GetNextSiblingItem(),則會得到Fault-Block。當GetNextSiblingItem()回傳為NULL時,則代表已無可用的child item存在。

4.GetSelectedItem():取得目前左鍵點選之項目。(回應之事件為OnClick時,才算有選中)

5.GetFirstVisibleItem():取得目前CTreeCtrl第一個看的到的項目。

使用此函式第一個會得到Mountain。
(目前測試,在進行item新增後,再使用此函式,有時候會得到Fault-Block。目前原因不明,需再多進行測試。)









6.GetNextVisibleItem():取得下一個看的到的項目。
即Mountain、River、Houses、Plant及其底下項目。唯獨Road只會得到根項目而已。

Comments

Popular Posts