This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
base/setup/welcome/welcome.c | 26 +++++++++++++++----------- | |
1 file changed, 15 insertions(+), 11 deletions(-) | |
diff --git a/base/setup/welcome/welcome.c b/base/setup/welcome/welcome.c | |
index 921588bb26..f797a6b539 100644 | |
--- a/base/setup/welcome/welcome.c | |
+++ b/base/setup/welcome/welcome.c | |
@@ -765,6 +765,7 @@ _tWinMain(HINSTANCE hInst, | |
HMENU hSystemMenu; | |
DWORD dwStyle = WS_OVERLAPPED | WS_CLIPCHILDREN | WS_CLIPSIBLINGS | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
modules/rostests/win32/user32/biditext/biditext.c | 19 +++++++++++++++++-- | |
1 file changed, 17 insertions(+), 2 deletions(-) | |
diff --git a/modules/rostests/win32/user32/biditext/biditext.c b/modules/rostests/win32/user32/biditext/biditext.c | |
index cc714c40f7..e8c02a8475 100644 | |
--- a/modules/rostests/win32/user32/biditext/biditext.c | |
+++ b/modules/rostests/win32/user32/biditext/biditext.c | |
@@ -170,11 +170,26 @@ LRESULT CALLBACK MainWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) | |
case WM_PAINT: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdbool.h> | |
int main() | |
{ | |
int i, n, stars; | |
int spaces; | |
char c; | |
scanf_s("%d%c", &n, &c); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdbool.h> | |
int main() | |
{ | |
bool condition = false; | |
double *scores = NULL; | |
double score = 0.0; | |
double sum = 0.0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main() | |
{ | |
int x; | |
char dummy; | |
char* months[] = { | |
"January", | |
"February", | |
"March", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EDITDLG DIALOG LOADONCALL MOVEABLE DISCARDABLE 20, 20, 229, 79 | |
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | |
CAPTION "Editor" | |
FONT 8, "MS Shell Dlg" | |
BEGIN | |
CONTROL "Edit:", IDD_TEXT, "static", SS_LEFT | WS_CHILD | WS_VISIBLE | WS_GROUP, 24, 16, 16, 14 | |
CONTROL "", IDD_EDIT, "edit", ES_LEFT | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 40, 14, 152, 14 | |
CONTROL "...", IDC_EDITOR, "button", BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 195, 14, 20, 14 | |
CONTROL "View:", IDD_TEXT, "static", SS_LEFT | WS_CHILD | WS_VISIBLE | WS_GROUP, 21, 36, 18, 14 | |
CONTROL "", IDD_VIEW, "edit", ES_LEFT | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 40, 35, 152, 14 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static LRESULT | |
MainWnd_OnInstall(HWND hwnd) | |
{ | |
DWORD fontExists; | |
HKEY hKey; | |
LPWSTR subKey = L"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Fonts"; | |
WCHAR szDestDir[256]; | |
/* First, we have to find out if the font still exists. */ | |
fontExists = GetFileAttributesW(g_fileName); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void UpdateStatusBar(WORD wch) // The function gets a Unicode value | |
{ | |
LPWSTR szCharDesc; | |
GetUName(wch,szCharDesc); //Gets the Character's Description String | |
WCHAR buff[sizeof szCharDesc + 30]; | |
wcscpy(buff,"U+%X: %s", wch, szCharDesc); //Putting it in a nice string | |
SendMessage(hStatusWnd,WM_SETTEXT,SB_SIMPLE,(LPARAM)buff); // push it to the status bar | |
} |