Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

XP style On DataWindow

19 views
Skip to first unread message

Chenwf

unread,
Nov 15, 2009, 10:17:34 PM11/15/09
to
I have VC++ through PBNI to open a PB's window, and now the PBwindow is
open, but the opening of the PB process datawindow without the Xp style, how
to solve this? I know that PB is through integration of a pattern in the Exe
where to use the XML style, but not through the EXE to open the window, Xp
style, there is no, and now would like to ask how to make the datawindow
with the XP style? If there is no style, then, the interface is really ugly.
If there is any internal function or a function is not open let me
achieve the goal, which would be wonderful.
Here is the code of my open window, the window is opened through the
n_open.uf_open function:

IPB_VM* pbvm = NULL;
hinst = LoadLibrary(L"pbvm115.dll");
if ( hinst== NULL) return 0;
P_PB_GetVM getvm = (P_PB_GetVM)GetProcAddress(hinst,"PB_GetVM");
if (getvm == NULL) return 0;
getvm(&pbvm);
if (pbvm == NULL) return 0;
LPCTSTR LibList[] = {L"open.pbd"};
if ( pbvm->CreateSession(L"aopen", LibList, 1, &session) != PBX_OK )
{
return 0;
}
pbgroup group = session->FindGroup(L"n_open",pbgroup_userobject);
if (group == NULL) return 0;
pbclass cls = session->FindClass(group,L"n_open");
if (cls == NULL) return 0;
pbobject pbobj = session->NewObject(cls);
PBCallInfo ci;
pbmethodID mid = session->GetMethodID(cls, L"uf_open", PBRT_FUNCTION,
L"LURCdatawindow.");
session->InitCallInfo(cls, mid, &ci);
....


Clive Collie

unread,
Nov 25, 2009, 11:59:38 AM11/25/09
to
I think you have to create a manifest file

http://msdn.microsoft.com/en-us/library/ms997646.aspx

or Google: XP look feel manifest

"Chenwf" <che...@e-future.com.cn> wrote in message
news:4b00c44e@forums-1-dub...

0 new messages