ID是资源号,一般是整型;
而句柄一般是指针,如HWND,HANDLE等

解决方案 »

  1.   

    to the aboves, Please say sth useful,everyone knows that he should study win32 if he has enough time.In windows
    #define void* HANDLE and ID is the short for Identifier(身份).
    In fact HANDLE don't need to exist if you just program with VC++.You can always use pointer. But Microsoft doesn't think so, so you must use HANDLE some time. Generally, you use this HANDLE to obtain the pointer of the object, because HANDLE is the physical address of a object. ID is just the identifier of a resource such as a bitmap or a dialog template, the purpose it to tell the VC++ compiler that you are using this bitmap or dialog.