Jump to content

MKaprocki

Frozen-Inactivity
  • Content Count

    322
  • Donations

    $0.00 
  • Joined

  • Last visited

Everything posted by MKaprocki

  1. Here's another post about it, on FlightInfo.comhttp://forums.flightinfo.com/showthread.php?threadid=25841
  2. Once you are cleared for the approach, you are allowed to descend down per the approach plates. Don't expect ATC to tell you to descend each time. ;)
  3. >The GDIPLUS.dll must be placed in the windowssystem>directory for windows98..>>RJCorrect. GDI Plus is not an FS module, it's a windows DLL used for drawing to the screen. Should be placed in Windowssystem. If you had XP, it would go in windowssystem32.
  4. So are you just trying to change the alpha of a bitmap, before drawing it?If so, try using a colormatrix. I used something like this to turn my bitmap into an alpha shadow:ImageAttributes ia;ColorMatrix colorMatrix = { 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, .50f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f};ia.SetColorMatrix(&colorMatrix, ColorMatrixFlagsDefault, ColorAdjustTypeBitmap);
  5. Try hhookSysMsg = SetWindowsHookEx(WH_CALLWNDPROC,CallWndProc,0, GetCurrentThreadId());UnhookWindowsHookEx(hhook_winproc) works fine for me, what error do you get?Also, in CallWndProc(), you should be using a CWPSTRUCT, such as:CWPSTRUCT *message;if (nCode >= 0){ message = (CWPSTRUCT *)lParam; if (message->message == WM_INITMENU) { hMenu = GetMenu(hWnd); SubMenu = GetSubMenu(hMenu, 0); MyMenu = CreatePopupMenu(); AppendMenu(MyMenu, MF_STRING, 12343, "&Click Me!"); AppendMenu(SubMenu, MF_STRING | MF_POPUP, (UINT)MyMenu, "&Test"); SetMenu(hwnd, hMenu); DrawMenuBar(hwnd); }}
  6. It's pretty tricky to do. You need to set a hook using SetWindowsHookEx on WH_CALLWNDPROC. Then in CallWndProc, when you get a WM_INITMENU message, draw your menu. Here's how I create the menu for my module:hMenu = GetMenu(hwnd);SubMenu = GetSubMenu(hMenu, 0);MyMenu = CreatePopupMenu();AppendMenu(MyMenu, MF_STRING, ID_FFS_SETTINGS, "&Settings");AppendMenu(MyMenu, MF_SEPARATOR, 0, 0);AppendMenu(MyMenu, MF_STRING, ID_FFS_ABOUT, "&About");AppendMenu(SubMenu, MF_STRING | MF_POPUP, (UINT)MyMenu, "Flight Factory");SetMenu(hwnd, hMenu);
  7. Here's my function for the WH_GETMESSAGE hook. Seems to work perfectly with no side effects. What way would you do it? WH_GETMESSAGE seems to be the only way I can catch a WM_COMMAND from a menu bar.LRESULT CALLBACK GetMsgProc(int nCode, WPARAM wParam, LPARAM lParam){ MSG *message; if (nCode >= 0) { message = (MSG *)lParam; if (message->message == WM_COMMAND) { if (LOWORD(message->wParam) == ID_FFS_ABOUT) { MessageBox(hwnd,"Flight Factory-Simulations!","FFS",MB_OK); } } } return CallNextHookEx(hhook_msgproc, nCode, wParam, lParam);}
  8. Never mind, I figured it out. Using a hook with WH_GETMESSAGE works perfectly! :-)
  9. I've got my module to display correctly on the FS menu bar, but I can't seem to intercept the clicks. I have a hook set for WH_CALLWNDPROC, and it works fine, but I'm not getting a WM_COMMAND message when I click on the menu bar. I thought WM_COMMAND was the message to look for when clicking the menu bar, but I guess not. If I open FSUIPC, I don't get a WM_COMMAND message until I click OK to close the dialog. I've also tried WM_MENUSELECT, but I'm having a hard time discerning the clicks on the sub menus from the main menus, along with highlites, etc. Any ideas? Thanks!
  10. I have no problems using gps_export.dll in FS2004. My F-16 panel is still able to retrieve flight plan info using it. Did you try putting gps_export.dll in the modules folder and using it?
  11. Try using KOHLSMAN_SETTING_MB or KOHLSMAN_SETTING_HG. That is, if you're using C and not XML. ;-)
  12. If you've got his SDK on gauge creation, Dai Griffiths explains how to do it. If you don't have it, search flightsim.com for it.One thing you might need to do is not set any breakpoints until after your gauge is loaded. I'm not sure if this is true, but I think I've had to do that in the past.
  13. Many will say that it only takes 3 or 4 thousand to get your PPL, but those are usually based on the bare minimum number of hours. Most people will usually require more than the minimum. $6500 seems to be about right, maybe even a little on the low side.Down here a 152 is $61 an hour. I forget what the price of instruction was where I got my private. Think it was in the $40 range.
  14. 172SPs go for $100-$110 in this area, look it up. There's more than enough planes for the number of students. I've been turned away once, when all of the Arrows where down for some emergency maintanence. You'll never have problems getting a 172 here.
  15. http://www.itc.virginia.edu/desktop/docs/messagepopup/
  16. >why the fascination with riddle? why not just get all your>ratings at a good part 61 school? or goto a "real" school like>purdue, und, siu, etc? the simulator "stuff" that riddle gives>you is not worth anything when it comes time to interview for>a job.There's more to Riddle than just flying, you know? We are just as real of a school as others. Aerospace, computer science, human factors...all kinds of other degrees and classes.
  17. Just finished my first year here and love it. I graduated high school with a 3.75 GPA and a 1200 SAT. It's not cheap, and I've heard that as long as you've got the money they'll take you. Don't really know if there's any truth to that, though.
  18. Actually, I believe it was Arne who added those in to the header file. The one straight from MS doesn't include those conversions.Matt
  19. Don't worry, they mispelled my name twice. :( Great read, though.
  20. I forget exactly which ones I'm using. I think it's either the CH Flightstick or Fighterstick. I tried a couple from CH to find one that worked. Get them from www.chproducts.comMatt
  21. MKaprocki

    Cable vs ADSL

    Capped at 2 Mb/s with Cable. Have seen upwards of 400-500 KB/s before they bumped the speeds down. ;( Very happy with my cable and would stick with it over DSL.Matt
  22. Here's another good site to go with the previous one.http://www.leftseat.com/FAAforms.htmMatt
×
×
  • Create New...