Results 1 to 1 of 1

Thread: Scrolling text

  1. #1
    Dwar
    Dwar is offline
    Veteran Dwar's Avatar
    Join Date
    2010 Mar
    Posts
    2,222
    Thanks Thanks Given 
    211
    Thanks Thanks Received 
    2,230
    Thanked in
    292 Posts
    Rep Power
    10

    Scrolling text

    globals
    int xx = 0;
    int yy = 0;

    pretty much in your present do
    DisplayScroll();

    void DisplayScroll()
    {
    Directx.DrawString(xx,yy,D3DCOLOR_ARGB(255,255,0,0 ),pFont,"YOUR SCROLL HERE :)");//however you make your font
    }

    now make the thing that runs it
    void RunScroll()
    {
    yy = 700;
    while(1){
    if(xx == 1000){
    xx = 0;
    }
    else {
    xx++;
    }
    }
    }

    Now Make a new Dll Thread
    DWORD WINAPI Scrolling( LPVOID ){
    RunScroll();
    return true;
    }

    and if you have no idea what your doing

    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
    DisableThreadLibraryCalls(hDll);

    if ( dwReason == DLL_PROCESS_ATTACH )
    {
    CreateThread(NULL, NULL, ScrollText, NULL, NULL, NULL);

    }
    return TRUE;
    }


    by TheLastSecond
    Please, post your questions on forum, not by PM or mail

    I spend my time, so please pay a little bit of your time to keep world in equilibrium

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •