How to use the same(share) texture in different OpenGL contexts.

There are something trouble me.I will use the same(share) texture in two different OpenGL contexts,But it only display in one.I think it will use wglShareLists,but it not help.
There are the code:

wglShareLists is the answer and it should work. The spec states that both GL contexts must share the same pixel format so maybe that is your problem (I rapidly went through split2.cpp and split2view.cpp and didn’t notice anything particular)