Check whether two layers is same one
bool is_same_layer( Layer & ly1, Layer & ly2 )
true = the layers are same
false = the layers are not same.
EX1
//Make a work book window active before run this example void is_equal_layer_test() { Worksheet wks1=Project.ActiveLayer(); Worksheet wks2(wks1); if(is_same_layer( wks1, wks2)) out_str("Two layers are same.") }
origin.h