עבור לתוכן
View in the app

A better way to browse. Learn more.

HWzone

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

צריך עזרה בהגדרת גודל חלון ב visual c++ win32

Featured Replies

פורסם

אני בונה בצורה הבאה:

	hwnd = CreateWindow (szAppName,     // window class name
"Rummikub", // window caption
WS_POPUP | WS_VISIBLE, // window style
0, // initial x position
0, // initial y position
1024, // initial x size
768, // initial y size
NULL, // parent window handle
NULL, // window menu handle
hInstance, // program instance handle
NULL) ; // creation parameters

עכשיו המטרה שלי היא לפתוח חלון על כל המסך אבל הבעיה שאני לא יודע מה הרזלוציה במחשב שהתוכנית רצה בו

אני סתם בחרתי 1024*768 כי זה מה שיש במעבדה שלנו בביה"ס

אני מחפש אם יש איזה פקודה שתתן לי את הרזולוציה של המסך בו התוכנית רצה ולפיה אני ישנה את הערכים ?

פורסם

תנסה כשאתה קורא ל- ShowWindow עבור החלון להוסיף את הדגל SW_MAXIMIZE לפרמטר השני.

פורסם

אני לא מומחה אבל עשיתי פעם משהו דומה.

למיטב זכרוני, GetSystemMetrics עם פרמטרים המתאימים מחזירה את הרזולוציה של המסך. SM_CXFULLSCREEN או משהו כזה.

השאלה היא האם אתה רוצה את הרזולוציה של כל המסך, או את הגודל של החלון המקסימלי (כלומר שלא כולל את ה-taskbar וכו'). בשביל זה יש את SystemParametersInfo.

הנה קישורים:

http://msdn2.microsoft.com/en-us/library/ms724385.aspx

http://msdn2.microsoft.com/en-us/library/ms724947.aspx

פורסם

אם אני לא טועה, אז אלה הקבועים(בתוך הפונקציות):


GetSystemMetrics(SM_CXSCREEN)
GetSystemMetrics(SM_CYSCREEN)

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.