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

[Menu]Disable item of title menu

當有將menu設為Dialog的Menu時,僅需用下列步驟就可以操作sub menu的Item的停用或啟用。

 this->GetMenu()->GetSubMenu(nSubMenuIndex)->EnableMenuItem(ID_SUB_MENU_ITEM, MF_GRAYED);

如果是要針對menu本身的Item,僅需用下列的作法:
 this->GetMenu()->EnableMenuItem(1, MF_GRAYED|MF_BYPOSITION);  

因為menu的item並沒有ID,所以在設定的時候要多給MF_BYPOSITION,這樣就可以用Index來指定Item了。

Comments

Popular Posts