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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Array of images

Array of images

Scheduled Pinned Locked Moved C / C++ / MFC
data-structurestutorialquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    T RATHA KRISHNAN
    wrote on last edited by
    #1

    Hi! I've ten images. I've stored them in an array. For evey 6 seconds I've to load each image. i.e initially, I've to load the first image. After 6 seconds, I've to load the second image. After 12 seconds, I've to load the third image etc. How to do this?

    V Y 2 Replies Last reply
    0
    • T T RATHA KRISHNAN

      Hi! I've ten images. I've stored them in an array. For evey 6 seconds I've to load each image. i.e initially, I've to load the first image. After 6 seconds, I've to load the second image. After 12 seconds, I've to load the third image etc. How to do this?

      V Offline
      V Offline
      visualheadsky
      wrote on last edited by
      #2

      1:add WM_TIMER message; 2:if(time%6==0) { show the second image }

      1 Reply Last reply
      0
      • T T RATHA KRISHNAN

        Hi! I've ten images. I've stored them in an array. For evey 6 seconds I've to load each image. i.e initially, I've to load the first image. After 6 seconds, I've to load the second image. After 12 seconds, I've to load the third image etc. How to do this?

        Y Offline
        Y Offline
        yu jian
        wrote on last edited by
        #3
        void CLoadImagesDlg::OnBnClickedOk()
        {
        	this->SetTimer(110, 6000, NULL);
        }
        
        void CLoadImagesDlg::OnTimer(UINT_PTR nIDEvent)
        {
        	static int i = 0;
        	switch(nIDEvent)
        	{
        	case 110:
        		// Load(m_bitmap[i++])
        		if (i >= 10)
        			this->KillTimer(110);
        		break;
        	}
        }
        
        
        public:
        	afx_msg void OnBnClickedOk();
        
        	afx_msg void OnTimer(UINT nIDEvent);
        
        private:
        	HBITMAP m_bitmap[10];
        

        我爸是李刚

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

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