SetAttributes
Sets/clears one of the attribute bits to the storage object
BOOL SetAttributes( DWORD dwAttrib, BOOL bSet = TRUE )
Returns no zero if the Attrib was set already, else zero
EX1
//assume there exists a page in current project before run this code. void Storage_SetAttributes_ex1() { Page pg = Project.Pages(); storage st; st = pg.GetStorage("system"); if ( st ) { DWORD dwAttrs = 0x00011001; st.SetAttributes(dwAttrs); DWORD dwTest1 = 0x00000001; DWORD dwTest2 = 0x00000010; bool bFlag1 = st.IsAttributes(dwTest1); bool bFlag2 = st.IsAttributes(dwTest2); } return; }
Storage::IsAttributes
origin.h