mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
Fix one more issue with 64bits windows
This commit is contained in:
parent
e2c01a284f
commit
c7e10f33a5
@ -152,11 +152,11 @@ void MaxEggImporter::ShowAbout(HWND hWnd)
|
|||||||
|
|
||||||
static INT_PTR CALLBACK ImportDlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
static INT_PTR CALLBACK ImportDlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
MaxEggImporter *imp = (MaxEggImporter*)GetWindowLong(hWnd,GWL_USERDATA);
|
MaxEggImporter *imp = (MaxEggImporter*) GetWindowLongPtr(hWnd, GWLP_USERDATA);
|
||||||
switch (msg) {
|
switch (msg) {
|
||||||
case WM_INITDIALOG:
|
case WM_INITDIALOG:
|
||||||
imp = (MaxEggImporter*)lParam;
|
imp = (MaxEggImporter*)lParam;
|
||||||
SetWindowLong(hWnd,GWL_USERDATA,lParam);
|
SetWindowLongPtr(hWnd, GWLP_USERDATA, lParam);
|
||||||
CenterWindow(hWnd, GetParent(hWnd));
|
CenterWindow(hWnd, GetParent(hWnd));
|
||||||
CheckDlgButton(hWnd, IDC_MERGE, imp->_merge);
|
CheckDlgButton(hWnd, IDC_MERGE, imp->_merge);
|
||||||
CheckDlgButton(hWnd, IDC_IMPORTMODEL, imp->_importmodel);
|
CheckDlgButton(hWnd, IDC_IMPORTMODEL, imp->_importmodel);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user