Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
E

EvScott

@EvScott
About
Posts
35
Topics
15
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Media Queries
    E EvScott

    Thank you. That solved it. Another problem that I'm finding is that I can't get my menu items centered in the middle of the

    header nav

    and be consistently centered for popular device types. It looks fine of the iPad, but on a Macbook Pro Retina it's more left justified. My base code centers it up nicely on an older LCD DELL 1024 x 768 monitor but the base code has no effect on the Retina. I've coded media queries for iPad min and iPad portrait and landscape and it's all good. Can't figure out what I'm doing wrong.

    Web Development css database tutorial question

  • Media Queries
    E EvScott

    I'm having trouble getting my media queries to work. No matter what media query I write in the CSS file, it just seems to be ignored. An example is as follows:

    @media only screen and (min-width: 320){
    header nav ul li{
    display:block;
    }
    }

    I've got lots of other CSS code in the file but not in media queries. Does everything need to be in a media query?

    Web Development css database tutorial question

  • Please don't laugh - Flash MX 2004 attachMovie problem
    E EvScott

    Hi - I know. Don't ask me why! It's all I can afford right now. However, more to the point, I've a problem that is really weird. I'm trying to attach a movie using the following code: //this code is associated with the button: on(press){ _root.attachMovie("MyOldMovieClip", "MyNewMovieClip"+level, level); _root["MyNewMovieClip"]+level._x = int(Math.random() * 500); _root["MyNewMovieClip"]+level._y = int(Math.random() * 450); level++; } I've got a movie clip symbol, and a button symbol in the library. The button only is on the stage. //This code is associated with the stage: level = 0; stop(); Pressing the button produces nothing. However when I run a trace i.e. trace(int(Math.random() * 500)); random values appear. Please put me out of my misery.

    Game Development adobe debugging help lounge

  • Trapping WM_KEYDOWN and WM_KEYUP on entering text in edit control
    E EvScott

    Actually, I've just run it with my code, and the system crashes with an error showing up at return CallWindowProc(wpOrigEditProc, hwnd, uMsg, wParam, lParam); When I debug the code, I notice that hwnd has a valid handle but claims to be unused. Details as follows: hwnd 0x000f070e {unused = ???}

    C / C++ / MFC help

  • Trapping WM_KEYDOWN and WM_KEYUP on entering text in edit control
    E EvScott

    Thanks a million Stuart - you're the man. It worked a treat. :-D

    C / C++ / MFC help

  • Trapping WM_KEYDOWN and WM_KEYUP on entering text in edit control
    E EvScott

    Thanks for your time and patience Stuart. I'm having problems with the editWindow = CreateWindow("EDIT", "edit", WS_CHILD|WS_BORDER, 10, 10, 300, 300, hWnd, 0, hInstance, 0); It doesn't like the hInstance parameter as I have created my Edit and command button windows in the WINAPI WinMain and I use its hInstance parameter and not the LRESULT CALLBACK WndProc Is there any way round that? Am I doing something obviously wrong?

    C / C++ / MFC help

  • Trapping WM_KEYDOWN and WM_KEYUP on entering text in edit control
    E EvScott

    I'm not using a dialog box, I'm using CreateWindow to draw my controls. It appears that the code that you pointed me to is more appropriate for windows interaction with a dialog ctrl: "...The following example shows how to subclass an instance of an edit control in a dialog box..." If I'm not understanding it correctly, then where in the code would I make changes in order for it to work with my application? I have implemented LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) and int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nCmdShow)

    C / C++ / MFC help

  • Trapping WM_KEYDOWN and WM_KEYUP on entering text in edit control
    E EvScott

    Thanks Stuart, but I'm using windows 32 API functions and not MFC. Any ideas?

    C / C++ / MFC help

  • adding percentage to calculator
    E EvScott

    What do you mean, to add percentage? case 5 : dReg = (aReg /dreg) x 100; aReg = dReg; break; Seems ok in calculating a percentage but what do you mean by 'add'?

    C / C++ / MFC

  • Trapping WM_KEYDOWN and WM_KEYUP on entering text in edit control
    E EvScott

    Hi, I need to carry out actions when an individual character is entered into a WIN32 C Edit control. These actions will take place each time a key is pressed and each time a key is released. Characters will be entered into an Edit control, but the edit control does not know when a keydown/up message is needed, or an onchar. I would appreciate some help in being able to 'trap' a keydown and keyup event when text is entered in an edit control. Thanks

    C / C++ / MFC help

  • Using GetSystemTime in WM_KEYDOWN
    E EvScott

    Thank you so much CPallini for you contribution. I made a small change to your original code by changing _T to L"" and it worked. Below is your code that I made small changes to. HRESULT hr = StringCbPrintf(msg, sizeof(TCHAR) * BUFSIZE, L"Time is %d", st.wMilliseconds); So I suppose all that's left is to ship that crate of cool beer to ya as promised in my original post. :laugh:

    C / C++ / MFC question

  • Using GetSystemTime in WM_KEYDOWN
    E EvScott

    Thanks CPallini - Just don't seem to get a sensible output. I've omitted your code for reasons of clarity. LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { SYSTEMTIME st; PAINTSTRUCT ps; switch (message) { case WM_PAINT: { HDC hdc = BeginPaint(hWnd,&ps); EndPaint(hWnd,&ps); } return(0); break; case WM_KEYDOWN: { SYSTEMTIME st; GetSystemTime(&st); //get duration in milliseconds } break; case WM_TIMER: { } break; case WM_KEYUP: { SYSTEMTIME st; GetSystemTime(&st); //get duration in milliseconds } break; case WM_DESTROY: // onload from memory PostQuitMessage(0); break; default: return DefWindowProc(hWnd, message, wParam, lParam); } return 0; }

    C / C++ / MFC question

  • Using GetSystemTime in WM_KEYDOWN
    E EvScott

    Thanks,CPallini.I still get the same values when I include your example. However, when I run in debug mode and examine the values, I can see the SYSTEMTIME.wMilliSeconds. Just don't seem able to access it in a messagebox.

    C / C++ / MFC question

  • Using GetSystemTime in WM_KEYDOWN
    E EvScott

    Thanks.

    C / C++ / MFC question

  • Using GetSystemTime in WM_KEYDOWN
    E EvScott

    I must be doing something really silly but I'm trying to get the time information when a key is hit down then released (WM_KEYUP). I'm writing a win32 application (doesn't anyone write these anymore?), but when I hit the key, I get a blank messagebox or squares. What am I doing wrong. Any good advice might win you a keg of cool beer or at least, a thanks. case WM_KEYDOWN: { SYSTEMTIME st; GetSystemTime(&st); MessageBox(NULL,(LPCWSTR)L"Time is "+ st.wMilliseconds,(LPCWSTR)L"Keystroke Analysis",MB_OK); } break; //etc

    C / C++ / MFC question

  • Absolutely Desperate...MAPI anyone
    E EvScott

    Thanks ANZAC, I think the problem lies in the way I've set my Outlook Express up as everything works well at work using Microsoft Outlook, but doesn't work with Express as I've got two folders: Local, and my default one.

    Visual Basic help tutorial question

  • Absolutely Desperate...MAPI anyone
    E EvScott

    A simple problem to solve I'd assume; I'm using MAPI to manipulate messaging. I have set up a profile in Outlook Express, and I can send email using my application. When I send to myself, it goes straight into my profile's inbox: Hotmail. However, When I use MAPIMessages1.MsgCount, it returns 0, as it reads from the default LOCAL folder. Any ideas on how to get my messages read from my new account?

    Visual Basic help tutorial question

  • MAPIMessages1.Fetch from a different folder
    E EvScott

    I'm trying to fetch mail from Outlook Exp using the MAPI components, but the mail is always fetched from the default Local folder which never gets updated with new mail. Am I doing something stupid here? How can I do a Fetch from my newly created hotmail folder?

    Visual Basic question

  • quite frustrated MAPIMessages1.MsgCount returns 0 always
    E EvScott

    Hi, I'm using MAPISession and MAPIMessage components to access MS Outlook emails but the MAPIMessages1.MsgCount always returns 0 even though I've got 100 read emails. I've got Outlook 2002. The code I have is as follows: ... MAPISession1.Username = "Outlook" MAPIMessage1.DownloadMail = True MAPISession1.SignOn MAPIMessages1.SessionID = MAPISession1.SessionID MAPIMessages1.Fetch iNumOfMsgs = MAPIMEssages1.MsgCount 'iNumOfMsgs declared as a local var ... iNumOfMsgs returns 0 when there are 100 read emails Any help with this is very much appreciated

    Visual Basic help

  • Fields go missing
    E EvScott

    I Can't be of much help unless I see some code examples. You're not setting any visible properties to false for the list ctrls are you? Post the code for the Perform Import event.

    Visual Basic help database tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups