¥Ï¥ëhal
¥Ç¥¸¥¿ŽÙ ¥³¥ó¥Æ¥ó¥Ä

pc2

ºî¤Ã¤Æ³Ø¤Ö
¥Ï¡¼¥É¤È¥½¥Õ¥È

¥¢¥ë¥´¥ê¥º¥à
ÅŻҲóÏ©

 






¤³¤Î¥µ¥¤¥È¤ÏHP¤Ç¤¹
¥Ö¥í¥°¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó
Í×˾¡¦°Õ¸«¤Ï
²¼µ­¤Î·Ç¼¨¾ì¤òÍøÍѤ·¤Æ
²¼¤µ¤¤¤Þ¤¿¥Ö¥í¥°¤â¸«¤Æ²¼¤µ¤¤

 

¥í¥Ü¥Ã¥È¡¦DOSV·Ç¼¨ÈÄ·ó£Â£ì£ï£ç

²û¤«¤·¤Î¥³¥ó¥Ô¥å¡¼¥¿
Apple II Apple2
PC9801 PC9821

£ò£ï£â£ï£ô£ï

Top¤ËÌá¤ë

¥é¥é Lara
¥¢¥Ê¥í¥° ¥³¥ó¥Æ¥ó¥Ä

LaraºÂ¤ì
Æ°²è¤Ç³Ø¤Ö
í¿¤È·±Îý
Æ°²è¥á¥Ë¥å¡¼


¹©ºî


½¸ÃÄÎý½¬¥á¥Ë¥å¡¼


¤·¤Ä¤±¡¡·±Îý¥³¥é¥à




ºÇ¸å¤Ë¥é¥é¤Ë¤Ä¤¤¤Æ

¤³¤Î¥µ¥¤¥È¤ÏHP¤Ç¤¹
¥Ö¥í¥°¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó
Í×˾¡¦°Õ¸«¤Ï
²¼µ­¤Î·Ç¼¨¾ì¤òÍøÍѤ·¤Æ
²¼¤µ¤¤¤Þ¤¿¥Ö¥í¥°¤â¸«¤Æ²¼¤µ¤¤

Lara¥é¥é¤Î
¥Ö¥í¥°

¸¤¤Î¤·¤Ä¤±¤È·±Îý
·Ç¼¨ÈÄ


·Ç¼¨ÈĤÎÍøÍѵ¬Â§

 

 

 

 

£Ì£á£ò£áÉú¤»
Top¤ËÌá¤ë
¾¾ËÜ¡¡¥ï¥ó¥ï¥ó¥¯¥é¥Ö
¤ï¤ó¤ï¤ó¥¯¥é¥Ö

 

²óÅúºÑ¤ßVisual Studio C++ 2008/2010 Express Edition¤ÇWindows¥Õ¥©¡¼¥à¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Çwin32api¤ò»ÈÍѤ¹¤ë¡£¤½¤Î£²
c++ cli ¡¡£Æ£ï£ò£í¡¡¤Ç¡¡¥Ç¥£¥¹¥×¥ì¥¤¡¡²òÁüÅÙ¤ÎÊѹ¹¥×¥í¥°¥é¥à¤òºî¤ë
³Ø½¬ÆâÍÆ¡¡
£±¡¥¡¡c++ cli Form ¤Çwin32api¤ò»ÈÍÑ
£²¡¥ ref class »²¾È¥¯¥é¥¹¤ÎÇÛÎó¤òºî¤ë
£³¡¥¡¡²èÌÌ¡¡²òÁüÅÙ¤ÎÊѹ¹


²óÅúºÑ¤ßVisual Studio C++ 2008/2010 Express Edition¤ÇWindows¥Õ¥©¡¼¥à¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Ç¤Ï£Ã¡Ü¡Ü¡¿£Ã£Ì£É¤¬ºÎÍѤµ¤ì¤Æ¤¤¤ë¤Î¤Ç¡¢.NET Framework¤ò»ÈÍѤ¹¤ë¡£
Í­ÎÁÈǤˤϣͣƣä¬ÉÕ¤¤¤Æ¤¤¤ë¤¬¡¢ÌµÎÁÈǤˤϤʤ¤¡££Æ£ï£ò£í¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Ë£÷£é£î£³£²£á£ð£é¤ò»ÈÍѤ¹¤ë¤³¤È¤Ï¸æË¡Å٤Τ褦¤Ç¤¢¤ë¤¬¡¢¼ÙÆ»¤Ç»È¤¦ÊýË¡

¤Þ¤Ç¥×¥í¥¸¥§¥¯¥È¤Ç£Æ£ï£ò£í¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤òºîÀ®
º£²ó¤ÎºîÀ®¤Ç¤Ï ref class »²¾È¥¯¥é¥¹¤ÎÇÛÎó¤òºî¤ë

º£²óºî¤ë¥¢¥×¥ê¥±¡¼¥·¥ç¥ó

¸«ËܤΥÀ¥¦¥ó¥í¡¼¥É¡¡exe zip

»ÈÍÑË¡¡¡¥ê¥¹¥È¥Ü¥Ã¥¯¥¹¤«¤éÁªÂò¡¡¥Ü¥¿¥ó£²¤Ç³Îǧ¡¡¥Ü¥¿¥ó1¤ÇÊѹ¹¡¡


ÀÖ»ú¤ÏÆþÎÏ

ref class »²¾È¥¯¥é¥¹¡¡d_data¤òºî¤ë

d_data.h¤ÎÃæ¿È

#pragma once
ref class d_data
{
public:

int no;
int x_data;
int y_data;

int perpel;
int hz;

d_data(void){
no=0;
x_data=0;
y_data=0;
perpel=0;
hz=0;

}
};

d_data.cpp¤ÎÃæ¿È

#include "StdAfx.h"
#include "d_data.h"

stdafx.h¤ÎÃæ¿È

#pragma once
#include"windows.h"
#include "commctrl.h"
#include <SDKDDKVer.h>
#include "d_data.h"

stdafx.cpp¤ÎÃæ¿È

#include "stdafx.h"
#include <windows.h>
#include <Winuser.h>


form.h¤ÎÃæ¿È

#pragma once
using namespace System::Diagnostics;
#include "d_data.h"
namespace disp32form1 {

using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;

/// <summary>
/// Form1 ¤Î³µÍ×
/// </summary>
public ref class Form1 : public System::Windows::Forms::Form
{
public:
Form1(void)
{
InitializeComponent();
//
//TODO: ¤³¤³¤Ë¥³¥ó¥¹¥È¥é¥¯¥¿¡¼ ¥³¡¼¥É¤òÄɲä·¤Þ¤¹


//EnableWindow(ListView_GetHeader(reinterpret_cast(this->listView1->

Handle.ToInt32())),FALSE);
//
}

protected:
/// <summary>
/// »ÈÍÑÃæ¤Î¥ê¥½¡¼¥¹¤ò¤¹¤Ù¤Æ¥¯¥ê¡¼¥ó¥¢¥Ã¥×¤·¤Þ¤¹¡£
/// </summary>
~Form1()
{
if (components)
{
delete components;
}
}
private: System::Windows::Forms::Button^ button1;
protected:

private: System::Windows::Forms::ListBox^ listBox1;

private: System::Windows::Forms::Button^ button2;
private: System::Windows::Forms::TextBox^ textBox2;

private:
/// <summary>
/// ɬÍפʥǥ¶¥¤¥Ê¡¼ÊÑ¿ô¤Ç¤¹¡£
/// </summary>
System::ComponentModel::Container ^components;
private: System::Windows::Forms::TextBox^ textBox1;
private: System::Windows::Forms::TextBox^ textBox3;
private: System::Windows::Forms::TextBox^ textBox4;
private: System::Windows::Forms::TextBox^ textBox5;

static array<d_data^>^ disp_data = gcnew array<d_data^> (1000); //»²¾È¥¯¥é¥¹¤ÎÇÛÎó¤Î¼ýǼ¾ì½ê¤òºî¤ë

#pragma region Windows Form Designer generated code
/// <summary>
/// ¥Ç¥¶¥¤¥Ê¡¼ ¥µ¥Ý¡¼¥È¤ËɬÍפʥ᥽¥Ã¥É¤Ç¤¹¡£¤³¤Î¥á¥½¥Ã¥É¤ÎÆâÍƤò
/// ¥³¡¼¥É ¥¨¥Ç¥£¥¿¡¼¤ÇÊѹ¹¤·¤Ê¤¤¤Ç¤¯¤À¤µ¤¤¡£
/// </summary>
void InitializeComponent(void)
{
this->button1 = (gcnew System::Windows::Forms::Button());
this->listBox1 = (gcnew System::Windows::Forms::ListBox());
this->button2 = (gcnew System::Windows::Forms::Button());
this->textBox2 = (gcnew System::Windows::Forms::TextBox());
this->textBox1 = (gcnew System::Windows::Forms::TextBox());
this->textBox3 = (gcnew System::Windows::Forms::TextBox());
this->textBox4 = (gcnew System::Windows::Forms::TextBox());
this->textBox5 = (gcnew System::Windows::Forms::TextBox());
this->SuspendLayout();
//
// button1
//
this->button1->Location = System::Drawing::Point(15, 19);
this->button1->Name = L"button1";
this->button1->Size = System::Drawing::Size(78, 19);
this->button1->TabIndex = 0;
this->button1->Text = L"button1";
this->button1->UseVisualStyleBackColor = true;
this->button1->Click += gcnew System::EventHandler(this, &Form1::button1_Click);
//
// listBox1
//
this->listBox1->FormattingEnabled = true;
this->listBox1->ItemHeight = 12;
this->listBox1->Location = System::Drawing::Point(12, 91);
this->listBox1->Name = L"listBox1";
this->listBox1->Size = System::Drawing::Size(461, 292);
this->listBox1->TabIndex = 2;
//
// button2
//
this->button2->Location = System::Drawing::Point(373, 19);
this->button2->Name = L"button2";
this->button2->Size = System::Drawing::Size(75, 19);
this->button2->TabIndex = 4;
this->button2->Text = L"button2";
this->button2->UseVisualStyleBackColor = true;
this->button2->Click += gcnew System::EventHandler(this, &Form1::button2_Click);
//
// textBox2
//
this->textBox2->Location = System::Drawing::Point(138, 19);
this->textBox2->Name = L"textBox2";
this->textBox2->Size = System::Drawing::Size(193, 19);
this->textBox2->TabIndex = 5;
//
// textBox1
//
this->textBox1->Location = System::Drawing::Point(15, 57);
this->textBox1->Name = L"textBox1";
this->textBox1->Size = System::Drawing::Size(100, 19);
this->textBox1->TabIndex = 6;
//
// textBox3
//
this->textBox3->Location = System::Drawing::Point(138, 60);
this->textBox3->Name = L"textBox3";
this->textBox3->Size = System::Drawing::Size(100, 19);
this->textBox3->TabIndex = 7;
//
// textBox4
//
this->textBox4->Location = System::Drawing::Point(255, 63);
this->textBox4->Name = L"textBox4";
this->textBox4->Size = System::Drawing::Size(100, 19);
this->textBox4->TabIndex = 8;
//
// textBox5
//
this->textBox5->Location = System::Drawing::Point(373, 65);
this->textBox5->Name = L"textBox5";
this->textBox5->Size = System::Drawing::Size(100, 19);
this->textBox5->TabIndex = 9;
//
// Form1
//
this->AutoScaleDimensions = System::Drawing::SizeF(6, 12);
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
this->ClientSize = System::Drawing::Size(636, 399);
this->Controls->Add(this->textBox5);
this->Controls->Add(this->textBox4);
this->Controls->Add(this->textBox3);
this->Controls->Add(this->textBox1);
this->Controls->Add(this->textBox2);
this->Controls->Add(this->button2);
this->Controls->Add(this->listBox1);
this->Controls->Add(this->button1);
this->Name = L"Form1";
this->Text = L"Form1";
this->Load += gcnew System::EventHandler(this, &Form1::Form1_Load);
this->ResumeLayout(false);
this->PerformLayout();

}

#pragma endregion
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
DEVMODE dispMode; // ¥Ç¥Ð¥¤¥¹¹½Â¤ÂÎ
HDC hdc; // ¸½ºß¤Î¿§²òÁüÅÙ¤ò¼èÆÀ¤¹¤ë¤¿¤á¤Î¥Ç¥Ð¥¤¥¹¥³¥ó¥Æ¥­¥¹¥È
hdc = GetDC(NULL); // ¥Ç¥Ð¥¤¥¹¹½Â¤ÂΤò½é´ü²½¤¹¤ë
ZeroMemory(&dispMode,sizeof(dispMode));
dispMode.dmSize = sizeof(dispMode);
dispMode.dmFields = DM_BITSPERPEL | DM_PELSWIDTH | DM_PELSHEIGHT;
dispMode.dmBitsPerPel = GetDeviceCaps(hdc,BITSPIXEL);
dispMode.dmPelsWidth = int::Parse(textBox3->Text); // ²òÁüÅÙ²£¥µ¥¤¥º¡Êwidth x¡Ë
dispMode.dmPelsHeight =int::Parse(textBox4->Text); // ²òÁüÅٽĥµ¥¤¥º¡Êhight y¡Ë
dispMode.dmBitsPerPel =int::Parse(textBox5->Text); // £±¥Ô¥¯¥»¥ëÅö¤¿¤ê¤Î¥Ó¥Ã¥È¿ô
dispMode.dmDisplayFrequency =int::Parse(textBox6->Text); // ¥ê¥Õ¥ì¥Ã¥·¥å¼þÇÈ¿ô
ReleaseDC(NULL,hdc);
// ¥Ç¥£¥¹¥×¥ì¥¤¥â¡¼¥É¤Î¥Á¥Ã¥¯¹ç³Ê¤Ê¤é²òÁüÅÙÊѹ¹¤ò¹Ô¤¦¡£
if( ChangeDisplaySettings(&dispMode,CDS_TEST) == DISP_CHANGE_SUCCESSFUL ) {
ChangeDisplaySettings(&dispMode,CDS_FULLSCREEN);}

}
private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) {
//»ÈÍѤǤ­¤ë¥Ç¥£¥¹¥×¥ì¥¤¥â¡¼¥É¤Î³Îǧ
String^ text;
static DEVMODE dispmode; // ¥Ç¥£¥¹¥×¥ì¥¤¥â¡¼¥É
static int disp_no;


/*-------------------
richTextBox1->SaveFile("C:\\dispmode.rtf");¡¡Êݸ¤¹¤ë¾ì¹ç
richTextBox1->LoadFile("C:\\dispmode.rtf");
-------------------*/
// »ÈÍѤǤ­¤ë¥Ç¥£¥¹¥×¥ì¥¤¥â¡¼¥É¤ò¥ê¥¹¥È¥Ü¥Ã¥¯¥¹¤Ëɽ¼¨
disp_no = 0;
text="";
while( TRUE )
{
//Á´¥â¡¼¥É¤ÎÎóµó
if( !EnumDisplaySettings( NULL, disp_no, &dispmode ) ){ break; }
// ¥ê¥Ã¥Á¥Æ¥­¥¹¥È¤Ëɽ¼¨¤¹¤ë
text=disp_no.ToString()+" "+dispmode.dmPelsWidth.ToString()+" "+dispmode.dmPelsHeight.ToString()+" "+dispmode.dmBitsPerPel.ToString()+" "+dispmode.dmDisplayFrequency.ToString()+"\n";
disp_data[disp_no]=gcnew d_data; //½ÅÍ× ¥¯¥é¥¹¤ÎÇÛÎó¤ÎÃæ¿È¤Î³ÎÊÝ
disp_data[disp_no]->no = disp_no;
disp_data[disp_no]->x_data =dispmode.dmPelsWidth; // ²òÁüÅÙ²£¥µ¥¤¥º¡Êwidth x¡Ë
disp_data[disp_no]->y_data =dispmode.dmPelsHeight; // ²òÁüÅٽĥµ¥¤¥º¡Êhight y¡Ë
disp_data[disp_no]->perpel =dispmode.dmBitsPerPel; // £±¥Ô¥¯¥»¥ëÅö¤¿¤ê¤Î¥Ó¥Ã¥È¿ô
disp_data[disp_no]->hz =dispmode.dmDisplayFrequency; // ¥ê¥Õ¥ì¥Ã¥·¥å¼þÇÈ¿ô
listBox1->Items->Add(text);
disp_no++;
}

}
private: System::Void button2_Click(System::Object^ sender, System::EventArgs^ e) {
int s_no;
textBox2->Text=listBox1->Text;
textBox1->Text=listBox1->SelectedIndex.ToString();
s_no=listBox1->SelectedIndex;
textBox3->Text=disp_data[s_no]->x_data.ToString();
textBox4->Text=disp_data[s_no]->y_data.ToString();
textBox5->Text=disp_data[s_no]->perpel.ToString();

}
};
}


¤Ä¤Å¤¯

 
Æ°²è¤¬»Ý¤¯¤´Í÷¤¤¤¿¤À¤±¤Ê¤¤¾ì¹ç¤ÏºÇ¿·¤ÎFlash Player¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¤¯¤À¤µ¤¤
web ¥Ö¥é¥¦¥¶¤¬¥¤¥ó¥¿¡¼¥Í¥Ã¥È¥¨¥¯¥¹¥×¥í¡¼¥é£¶¡Ê£É£Å£¶¡Ë°Ê²¼¤Î¾ì¹ç¥á¥Ë¥å¡¼¤¬Êø¤ì¤Æ¤·¤Þ¤¦¤³¤È¤¬¤¢¤ê¤Þ¤¹¡£
¥¤¥ó¥¿¡¼¥Í¥Ã¥È¥¨¥¯¥¹¥×¥í¡¼¥é£·¡¢Sleipnir¡¢Mozilla Firefox¤ò¤´»ÈÍѤ¯¤À¤µ¤¤¡£