⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 text.c

📁 世界时间代码 。希望能对minigui的初学者有帮助
💻 C
📖 第 1 页 / 共 2 页
字号:
}int Paris_Text (HDC hdc){    RECT rc1, rc2;    const char* szBuff_Beijing_1 = "            巴黎历史简介 \n"	    "巴黎是法国最大的工商业城市。北部诸郊区主要为制造业区。最发达的制造业项目有汽车、电器、化工、医药、"	    "食品等。奢华品生产居次,并主要集中在市中心各区。  ";    const char* szBuff_Beijing_2 =             "The general situation of Paris\n" 
	    "The high Eiffel Tower, the colorful streets, the beautiful river Seine,the"	    "glorious palaces, the romantic people,the old history.Paris is a great place"	    " to all people in the world. As the capital of France, Paris is a modern city "	    "with a long and rich history. So many events took place here and there are so "	    "many places for the visitors to have a trip. The Tower Eiffel, which is 320 meters"	    " high, is the symbol of Paris. It was completed in 1889 for the centenary of the"	    " Revolution. The Arc de Triomphe was finished in 1836. It’s a world famous building.";    rc1.left = 25; rc1.top  = 45; rc1.right = 306; rc1.bottom = 150;    rc2.left = 25; rc2.top  = 150; rc2.right = 306; rc2.bottom = 427;    SetBkColor (hdc, COLOR_lightgray);               //设置字体背景颜色    SetTextColor (hdc, PIXEL_darkred);              //设置字体颜色    SetPenColor(hdc, PIXEL_blue);              //设置线条颜色    SetBrushColor (hdc, PIXEL_lightgray);     FillBox(hdc, rc1.left, rc1.top, rc1.right-25, rc2.bottom);    Rectangle (hdc, rc1.left, rc1.top, rc1.right, rc1.bottom);    Rectangle (hdc, rc2.left, rc2.top, rc2.right, rc2.bottom);    InflateRect (&rc1, -1, -1);    InflateRect (&rc2, -1, -1);    SelectFont (hdc, logfontttf2);    DrawText (hdc, szBuff_Beijing_1, -1, &rc1, DT_NOCLIP | DT_LEFT | DT_WORDBREAK);    SelectFont (hdc, logfontttf2);    DrawTextEx (hdc, szBuff_Beijing_2, -1, &rc2, 13, DT_LEFT | DT_CHARBREAK);}int London_Text (HDC hdc){    RECT rc1, rc2;    const char* szBuff_Beijing_1 = "            伦敦历史简介 \n"	    "纽约,是美国人口最多的城市,包括其都市圈,它拥有世界上最大的城市区。"	    "超过一个世纪的时间,纽约是世界上最主要的商业和金融中心,纽约是美国最大"	    "城市及第一大港。  ";    const char* szBuff_Beijing_2 =             "The general situation of London\n" 
	    "New York or New York City (officially The City of New York), a city in the "	    "state of New York, is the most populous city in the United States. For more "	    "than a century, it has been one of the world's leading business, financial and"	    " cultural centers and its influence in politics, education, entertainment, sports"	    ", media, fashion and the arts all contribute to its status as one of the major"	    " global cities. As the home of the United Nations, the city is a hub for"	    " international diplomacy.  ";    rc1.left = 25; rc1.top  = 45; rc1.right = 306; rc1.bottom = 150;    rc2.left = 25; rc2.top  = 150; rc2.right = 306; rc2.bottom = 427;    SetBkColor (hdc, COLOR_lightgray);               //设置字体背景颜色    SetTextColor (hdc, PIXEL_darkred);              //设置字体颜色    SetPenColor(hdc, PIXEL_blue);              //设置线条颜色    SetBrushColor (hdc, PIXEL_lightgray);     FillBox(hdc, rc1.left, rc1.top, rc1.right-25, rc2.bottom);    Rectangle (hdc, rc1.left, rc1.top, rc1.right, rc1.bottom);    Rectangle (hdc, rc2.left, rc2.top, rc2.right, rc2.bottom);    InflateRect (&rc1, -1, -1);    InflateRect (&rc2, -1, -1);    SelectFont (hdc, logfontttf2);    DrawText (hdc, szBuff_Beijing_1, -1, &rc1, DT_NOCLIP | DT_LEFT | DT_WORDBREAK);    SelectFont (hdc, logfontttf2);    DrawTextEx (hdc, szBuff_Beijing_2, -1, &rc2, 13, DT_LEFT | DT_CHARBREAK);}int Cairo_Text (HDC hdc){    RECT rc1, rc2;    const char* szBuff_Beijing_1 = "            开罗历史简介 \n"	    "开罗位于北纬30°线附近,三面被沙漠包围,气候干燥,是世界上最大的沙漠城市和降雨量最小的首都"	    "(年降水仅29毫米)。年内气温变化很大,7月份常达40~44℃,1月份则降至O℃左右。  ";    const char* szBuff_Beijing_2 =             "The general situation of Cairo\n" 
	    "Cairo is Egypt. For Egyptians to speak of one is to speak of the other. "	    "The 'Mother of the World' nurtures more than 16 million Egyptians, Arabs,"	    " Africans and sundry international hangers-on in a collision of East"	    " and West, old and new, African and Arabic. She's overburdened with one of the"	    " world's highest population densities, which makes for a seething mass of people"	    ", buildings and cacophonous traffic.Cairo has been the heart of Egypt"	    " for more than 1000 years. The resulting pervasive sense of timelessness is one"	    " of the city's great charms. ";    rc1.left = 25; rc1.top  = 45; rc1.right = 306; rc1.bottom = 150;    rc2.left = 25; rc2.top  = 150; rc2.right = 306; rc2.bottom = 427;    SetBkColor (hdc, COLOR_lightgray);               //设置字体背景颜色    SetTextColor (hdc, PIXEL_darkred);              //设置字体颜色    SetPenColor(hdc, PIXEL_blue);              //设置线条颜色    SetBrushColor (hdc, PIXEL_lightgray);     FillBox(hdc, rc1.left, rc1.top, rc1.right-25, rc2.bottom);    Rectangle (hdc, rc1.left, rc1.top, rc1.right, rc1.bottom);    Rectangle (hdc, rc2.left, rc2.top, rc2.right, rc2.bottom);    InflateRect (&rc1, -1, -1);    InflateRect (&rc2, -1, -1);    SelectFont (hdc, logfontttf2);    DrawText (hdc, szBuff_Beijing_1, -1, &rc1, DT_NOCLIP | DT_LEFT | DT_WORDBREAK);    SelectFont (hdc, logfontttf2);    DrawTextEx (hdc, szBuff_Beijing_2, -1, &rc2, 13, DT_LEFT | DT_CHARBREAK);}int Sydney_Text (HDC hdc){    RECT rc1, rc2;    const char* szBuff_Beijing_1 = "            悉尼历史简介 \n"	    "纽约,是美国人口最多的城市,包括其都市圈,它拥有世界上最大的城市区。"	    "超过一个世纪的时间,纽约是世界上最主要的商业和金融中心,纽约是美国最大"	    "城市及第一大港。  ";    const char* szBuff_Beijing_2 =             "The general situation of Sydney\n" 
	    "New York or New York City (officially The City of New York), a city in the "	    "state of New York, is the most populous city in the United States. For more "	    "than a century, it has been one of the world's leading business, financial and"	    " cultural centers and its influence in politics, education, entertainment, sports"	    ", media, fashion and the arts all contribute to its status as one of the major"	    " global cities. As the home of the United Nations, the city is a hub for"	    " international diplomacy.  ";    rc1.left = 25; rc1.top  = 45; rc1.right = 306; rc1.bottom = 150;    rc2.left = 25; rc2.top  = 150; rc2.right = 306; rc2.bottom = 427;    SetBkColor (hdc, COLOR_lightgray);               //设置字体背景颜色    SetTextColor (hdc, PIXEL_darkred);              //设置字体颜色    SetPenColor(hdc, PIXEL_blue);              //设置线条颜色    SetBrushColor (hdc, PIXEL_lightgray);     FillBox(hdc, rc1.left, rc1.top, rc1.right-25, rc2.bottom);    Rectangle (hdc, rc1.left, rc1.top, rc1.right, rc1.bottom);    Rectangle (hdc, rc2.left, rc2.top, rc2.right, rc2.bottom);    InflateRect (&rc1, -1, -1);    InflateRect (&rc2, -1, -1);    SelectFont (hdc, logfontttf2);    DrawText (hdc, szBuff_Beijing_1, -1, &rc1, DT_NOCLIP | DT_LEFT | DT_WORDBREAK);    SelectFont (hdc, logfontttf2);    DrawTextEx (hdc, szBuff_Beijing_2, -1, &rc2, 13, DT_LEFT | DT_CHARBREAK);}int Brazilia_Text (HDC hdc){    RECT rc1, rc2;    const char* szBuff_Beijing_1 = "          巴塞罗那历史简介 \n"	    "纽约,是美国人口最多的城市,包括其都市圈,它拥有世界上最大的城市区。"	    "超过一个世纪的时间,纽约是世界上最主要的商业和金融中心,纽约是美国最大"	    "城市及第一大港。  ";    const char* szBuff_Beijing_2 =             "The general situation of Brazilia\n" 
	    "New York or New York City (officially The City of New York), a city in the "	    "state of New York, is the most populous city in the United States. For more "	    "than a century, it has been one of the world's leading business, financial and"	    " cultural centers and its influence in politics, education, entertainment, sports"	    ", media, fashion and the arts all contribute to its status as one of the major"	    " global cities. As the home of the United Nations, the city is a hub for"	    " international diplomacy.  ";    rc1.left = 25; rc1.top  = 45; rc1.right = 306; rc1.bottom = 150;    rc2.left = 25; rc2.top  = 150; rc2.right = 306; rc2.bottom = 427;    SetBkColor (hdc, COLOR_lightgray);               //设置字体背景颜色    SetTextColor (hdc, PIXEL_darkred);              //设置字体颜色    SetPenColor(hdc, PIXEL_blue);              //设置线条颜色    SetBrushColor (hdc, PIXEL_lightgray);     FillBox(hdc, rc1.left, rc1.top, rc1.right-25, rc2.bottom);    Rectangle (hdc, rc1.left, rc1.top, rc1.right, rc1.bottom);    Rectangle (hdc, rc2.left, rc2.top, rc2.right, rc2.bottom);    InflateRect (&rc1, -1, -1);    InflateRect (&rc2, -1, -1);    SelectFont (hdc, logfontttf2);    DrawText (hdc, szBuff_Beijing_1, -1, &rc1, DT_NOCLIP | DT_LEFT | DT_WORDBREAK);    SelectFont (hdc, logfontttf2);    DrawTextEx (hdc, szBuff_Beijing_2, -1, &rc2, 13, DT_LEFT | DT_CHARBREAK);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -